fix: Disable warnings for GNU extensions on Clang
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 21 Jul 2022 13:10:30 +0000 (09:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Jul 2022 18:01:41 +0000 (14:01 -0400)
Some versions of Clang enabled '-Wgnu' in '-Wall', since we rely on
GNUisms in the code this results in numerous errors. Check if the
compiler accepts '-Wno-gnu' to disable those warnings.

Change-Id: I9d1126744e427a6cf7c18e219cae5431227a43c0
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index ba4c85559ad4037c0dd4d9da3c3ed361efcbddb5..cca827a77cd50e6a627b38cd03d249e6fc7d6b1c 100644 (file)
@@ -162,6 +162,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl
   -Wno-sign-compare dnl
   -Wno-missing-field-initializers dnl
   -Wno-null-dereference dnl
+  -Wno-gnu dnl Disable warnings for GNU extensions on Clang
 ])
 
 # Pass -Werror as an extra flag during the test: this is needed to make the
This page took 0.025386 seconds and 4 git commands to generate.