Skip to content

Commit d60f9d0

Browse files
mikdusanandrewrk
authored andcommitted
stage1: fix gcc 9.1.0 compiler error on archlinux
1 parent e81156b commit d60f9d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/zig_clang_cc1_main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
#if __GNUC__ >= 9
16+
#pragma GCC diagnostic push
17+
#pragma GCC diagnostic ignored "-Winit-list-lifetime"
18+
#endif
19+
1520
#include "clang/Basic/Stack.h"
1621
#include "clang/Basic/TargetOptions.h"
1722
#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"

0 commit comments

Comments
 (0)