From f37f9d1c66d966925b8feb65b1d601e435e9e240 Mon Sep 17 00:00:00 2001 From: shel <9306996+afwn90cj93201nixr2e1re@users.noreply.github.com> Date: Wed, 22 Sep 2021 19:01:35 -0500 Subject: [PATCH] Fix gcc 9.2 compilation. (#835) Fix gcc 9.2 compilation. --- AMBuildScript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 51fcff50..5be17da3 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -225,6 +225,10 @@ class AMXXConfig(object): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] if have_gcc and cxx.version >= '4.8': cxx.cflags += ['-Wno-unused-result', '-Wno-error=sign-compare'] + if have_gcc and cxx.version >= '8.0': + cxx.cflags += ['-Wno-stringop-truncation'] + if have_gcc and cxx.version >= '9.0': + cxx.cflags += ['-Wno-address-of-packed-member'] if have_clang: cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] if cxx.version >= 'apple-clang-10.0':