Commit 1df75da918

Andrew Kelley <andrew@ziglang.org>
2019-08-27 03:40:44
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.
1 parent 50a8026
Changed files (1)
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 <llvm/Analysis/TargetLibraryInfo.h>
@@ -50,7 +50,7 @@
 
 #include <lld/Common/Driver.h>
 
-#if __GNUC__ >= 8
+#if __GNUC__ >= 9
 #pragma GCC diagnostic pop
 #endif