From 7602eb6095f5d0bd2314608f3895d4b8a6cae3a2 Mon Sep 17 00:00:00 2001 From: QwertyChouskie Date: Fri, 2 Dec 2022 12:50:35 -0800 Subject: [PATCH] Use `-Wno-stringop-overflow` when compiling .deb (#18731) This warning is bugged in GCC < `11.3`, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 Closes https://github.com/OpenRCT2/OpenRCT2/issues/16691 --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 3c39c25d50..d62edd27e8 100755 --- a/debian/rules +++ b/debian/rules @@ -2,5 +2,10 @@ 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 + %: dh $@