From 2ba12008c885eff53d7e178dabf6fc76a74099f3 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 26 May 2012 15:46:43 -0400 Subject: [PATCH] Don't add -Wno-delete-non-virtual-dtor for gcc < 4.7. (bug 5205, r=DS). --- AMBuildScript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 13489592..c2586b42 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -120,7 +120,7 @@ class SM: self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics') self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor') self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual') - if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 3) or \ + if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \ (self.vendor == 'clang' and cxx.majorVersion >= 3): self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')