AMBuildScript
changeset 91 5f4402180204
parent 89 f360bbc9b140
child 92 e3974e7360e9
     1.1 --- a/AMBuildScript	Wed Jul 25 00:16:52 2012 -0700
     1.2 +++ b/AMBuildScript	Wed Jul 25 00:48:08 2012 -0700
     1.3 @@ -46,9 +46,16 @@
     1.4  				self.compiler.AddToListVar('CXXFLAGS', '-fno-rtti')
     1.5  				self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics')
     1.6  
     1.7 +				# We don't really care about these.
     1.8  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor')
     1.9  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual')
    1.10  
    1.11 +				# The compiler is too aggressive about what what should be a valid offsetof.
    1.12 +				self.compiler.AddToListVar('CXXFLAGS', '-Wno-invalid-offsetof')
    1.13 +
    1.14 +				# This would otherwise forbid ((x = y) == NULL) in clang apparently.
    1.15 +				self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic')
    1.16 +
    1.17  				if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \
    1.18  						(self.vendor == 'clang' and cxx.majorVersion >= 3):
    1.19  					self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor')