diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-26 21:40:44 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-26 21:40:44 -0400 |
| commit | 1df75da918c5bf4bfa3f6836e79040628c533657 (patch) | |
| tree | 3fa1f35d5c14f8a010bcc9864ee4b2a75fad0e7e /src/zig_llvm.cpp | |
| parent | 50a80261dcc1471911a63b9121096b80edbf6ff0 (diff) | |
| download | zig-1df75da918c5bf4bfa3f6836e79040628c533657.tar.gz zig-1df75da918c5bf4bfa3f6836e79040628c533657.zip | |
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.
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 6 |
1 files 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 <llvm/Analysis/TargetLibraryInfo.h> @@ -50,7 +50,7 @@ #include <lld/Common/Driver.h> -#if __GNUC__ >= 8 +#if __GNUC__ >= 9 #pragma GCC diagnostic pop #endif |
