Bug 1369864: Suppress clang -Wno-zero-as-null-pointer-constant build warning, in pkix/test/gtest. r?keeler draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 02 Jun 2017 13:05:30 -0700
changeset 588442 a261f0b7fb46d977365e4ec86f10b3ce0f184a17
parent 588417 8a75d83ea70bdfdc92711c15bf6e9870eba371c7
child 588451 fcfa02cb237e10ff6216fd55aae8c6dde89469a0
child 588452 f85060a32ee3ced9a71fe795a4e774acc39469a5
push id62036
push userdholbert@mozilla.com
push dateFri, 02 Jun 2017 20:05:36 +0000
reviewerskeeler
bugs1369864
milestone55.0a1
Bug 1369864: Suppress clang -Wno-zero-as-null-pointer-constant build warning, in pkix/test/gtest. r?keeler The gtest headers trigger many instances of this warning, due to their usage of NULL instead of nullptr. MozReview-Commit-ID: Dhv7mPHpZ7I
security/pkix/test/gtest/moz.build
--- a/security/pkix/test/gtest/moz.build
+++ b/security/pkix/test/gtest/moz.build
@@ -51,16 +51,17 @@ if CONFIG['GNU_CXX']:
     '-Wno-old-style-cast',
   ]
   if CONFIG['CLANG_CXX']:
     CXXFLAGS += [
       '-Wno-exit-time-destructors',
       '-Wno-global-constructors',
       '-Wno-thread-safety',
       '-Wno-used-but-marked-unused',
+      '-Wno-zero-as-null-pointer-constant',
     ]
 elif CONFIG['_MSC_VER']:
   CXXFLAGS += [
     '-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::...
     '-wd4275', # non dll-interface class used as base for dll-interface class
     '-wd4548', # Expression before comma has no effect
     '-wd4625', # copy constructor could not be generated.
     '-wd4626', # assugment operator could not be generated.