From 1df75da918c5bf4bfa3f6836e79040628c533657 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 26 Aug 2019 21:40:44 -0400 Subject: [PATCH] remove no longer needed gcc8 workaround. add gcc9 workaround Occasionally LLVM headers generate warnings with newer gcc versions and since we use -Werror this has to be worked around. --- src/zig_llvm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index d9315ff549..c19abbbac8 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -15,9 +15,9 @@ #include "zig_llvm.h" -#if __GNUC__ >= 8 +#if __GNUC__ >= 9 #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wclass-memaccess" +#pragma GCC diagnostic ignored "-Winit-list-lifetime" #endif #include @@ -50,7 +50,7 @@ #include -#if __GNUC__ >= 8 +#if __GNUC__ >= 9 #pragma GCC diagnostic pop #endif