CONFIGURE: Disable -pedantic on raspberrypi target

Because of very noisy warnings from system headers using #include_next
extension, and such.
This commit is contained in:
Donovan Watteau committed 2024-08-11 17:15:54 +02:00
1 parent 5f70129eab
commit f496ac611b
1 file changed
+9
Vendored
+9
View File
@@ -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'