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':