mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
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.
This commit is contained in:
parent
50a80261dc
commit
1df75da918
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user