Skip to content

Commit 4bad702

Browse files
committed
[build] silence some useless gcc warnings
1 parent 84dd4dd commit 4bad702

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FLAGS := \
2121
-I$(JULIAHOME)/deps/valgrind
2222
ifneq ($(USEMSVC), 1)
2323
FLAGS += -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fno-common \
24-
-Wpointer-arith -Wundef
24+
-Wno-comment -Wpointer-arith -Wundef
2525
ifeq ($(USEGCC),1) # GCC bug #25509 (void)__attribute__((warn_unused_result))
2626
FLAGS += -Wno-unused-result
2727
endif

src/llvm-version.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
#endif
1818

1919
#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 0
20+
21+
#if defined(__GNUC__) && (__GNUC__ >= 9)
22+
// Added in GCC 9, this warning is annoying
23+
#pragma GCC diagnostic ignored "-Winit-list-lifetime"
24+
#endif

0 commit comments

Comments
 (0)