From 87cc42d348e2ef26a25309b30eb1ce7011aa8b64 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 12 May 2020 15:40:50 -0700 Subject: [PATCH] Fix build failures with clang 10. --- AMBuildScript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 9e52a273..1be7732e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -316,6 +316,13 @@ class SMConfig(object): cxx.cxxflags += ['-Wno-deprecated'] cxx.cflags += ['-Wno-sometimes-uninitialized'] + # Work around SDK warnings. + if cxx.version >= 'clang-10.0': + cxx.cflags += [ + '-Wno-implicit-int-float-conversion', + '-Wno-tautological-overlap-compare', + ] + if have_gcc: cxx.cflags += ['-mfpmath=sse'] cxx.cflags += ['-Wno-maybe-uninitialized']