From 8438d05011a62cb1c5923c7553a10afc9fe38895 Mon Sep 17 00:00:00 2001 From: QwertyChouskie Date: Sun, 4 Dec 2022 22:22:31 -0800 Subject: [PATCH] Work around more false warnings when compiling deb (#18753) See https://github.com/OpenRCT2/OpenRCT2/issues/16691 and https://github.com/OpenRCT2/OpenRCT2/issues/17371 --- debian/rules | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index d62edd27e8..60ea49a7b1 100755 --- a/debian/rules +++ b/debian/rules @@ -2,10 +2,19 @@ BUILDDIR=build_dir -# Ignore false warning with GCC < 11.3: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 -# Reference OpenRCT2 bug report: https://github.com/OpenRCT2/OpenRCT2/issues/16691 -export DEB_CFLAGS_MAINT_APPEND = -Wno-stringop-overflow -export DEB_CXXFLAGS_MAINT_APPEND = -Wno-stringop-overflow +# Ignore false warnings with GCC: +# +# stringop-overflow false positive in GCC < 11.3 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 +# +# maybe-uninitialized false positive in GCC < 12.3 (note 12.3 is currently unreleased) +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937 +# +# Reference OpenRCT2 bug reports: +# https://github.com/OpenRCT2/OpenRCT2/issues/16691 (-Wno-stringop-overflow) +# https://github.com/OpenRCT2/OpenRCT2/issues/17371 (-Wno-maybe-uninitialized -Wno-error=null-dereference) +export DEB_CFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference +export DEB_CXXFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference %: dh $@