From f496ac611b2eaa3aa084ecef0ebdc2169fecbb2b Mon Sep 17 00:00:00 2001 From: Donovan Watteau Date: Sun, 11 Aug 2024 17:06:27 +0200 Subject: [PATCH] CONFIGURE: Disable -pedantic on raspberrypi target Because of very noisy warnings from system headers using #include_next extension, and such. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index 3f777e8c5bc..d754893211d 100755 --- a/configure +++ b/configure @@ -2356,6 +2356,15 @@ if test "$have_gcc" = yes ; then *) ;; esac + + if test -n "$_host"; then + case "$_host" in + raspberrypi) + pedantic=no + ;; + esac + fi + append_var CXXFLAGS "-W -Wno-unused-parameter" add_line_to_config_mk 'CXX_UPDATE_DEP_FLAG = -MMD -MF "$(*D)/$(DEPDIR)/$(*F).d" -MQ "$@" -MP'