AMBuildScript
changeset 251 ca99a81745fe
parent 113 ed16a8e3ec5f
child 253 544c478362c2
     1.1 --- a/AMBuildScript	Sat Dec 29 00:55:38 2012 -0800
     1.2 +++ b/AMBuildScript	Tue Jan 01 15:34:07 2013 -0800
     1.3 @@ -68,8 +68,12 @@
     1.4  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-invalid-offsetof')
     1.5  
     1.6  				# This would otherwise forbid ((x = y) == NULL) in clang apparently.
     1.7 -				if self.vendor == 'clang':
     1.8 +				if self.vendor == 'clang' and cxx.majorVersion > 1:
     1.9  					self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic')
    1.10 +				if self.vendor == 'clang' and \
    1.11 +				   cxx.majorVersion >= 3 and \
    1.12 +				   cxx.minorVersion >= 3:
    1.13 +					self.compiler.AddToListVar('CXXFLAGS', '-Wno-unused-private-field')
    1.14  
    1.15  				if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \
    1.16  						(self.vendor == 'clang' and cxx.majorVersion >= 3):