From fa184a4dbf3ee0ac1cc1001566031abbc7866f87 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 21 Jul 2022 09:10:30 -0400 Subject: [PATCH] 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) 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 -- 2.34.1