From: Michael Jeanson Date: Thu, 21 Jul 2022 13:10:30 +0000 (-0400) Subject: fix: Disable warnings for GNU extensions on Clang X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=ec35d67c813044fcaaea2229c566480c221e693e;p=lttng-ust.git fix: Disable warnings for GNU extensions on Clang 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index b5c3bee6..27f86dde 100644 --- a/configure.ac +++ b/configure.ac @@ -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