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.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=fa184a4dbf3ee0ac1cc1001566031abbc7866f87 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 ba4c8555..cca827a7 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