diff -r 0998a43cc155 -r ca99a81745fe AMBuildScript --- a/AMBuildScript Sat Dec 29 00:55:38 2012 -0800 +++ b/AMBuildScript Tue Jan 01 15:34:07 2013 -0800 @@ -68,8 +68,12 @@ self.compiler.AddToListVar('CXXFLAGS', '-Wno-invalid-offsetof') # This would otherwise forbid ((x = y) == NULL) in clang apparently. - if self.vendor == 'clang': + if self.vendor == 'clang' and cxx.majorVersion > 1: self.compiler.AddToListVar('CXXFLAGS', '-Wno-null-arithmetic') + if self.vendor == 'clang' and \ + cxx.majorVersion >= 3 and \ + cxx.minorVersion >= 3: + self.compiler.AddToListVar('CXXFLAGS', '-Wno-unused-private-field') if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \ (self.vendor == 'clang' and cxx.majorVersion >= 3):