From 08494d0d66e8c17784a014c6096b46fb3b743d5f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 11 Jul 2021 22:14:16 -0700 Subject: [PATCH] macOS build fix. --- AMBuildScript | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 70711cc1..51fcff50 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -222,16 +222,16 @@ class AMXXConfig(object): if have_clang or (have_gcc and cxx.version >= '4.6'): cxx.cflags += ['-Wno-narrowing'] if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'): - cxx.cxxflags += [ - '-Wno-delete-non-virtual-dtor', - '-Wno-varargs', - ] + 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_clang: cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] if cxx.version >= 'apple-clang-10.0': - cxx.cxxflags += ['-Wno-inconsistent-missing-override'] + cxx.cxxflags += [ + '-Wno-inconsistent-missing-override', + '-Wno-varargs', + ] if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4': cxx.cxxflags += ['-Wno-deprecated-register'] else: