Bug 1411901 - Port bug 1403346 to C-C: Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Thu, 26 Oct 2017 11:51:26 +0200
changeset 29260 e0e10be130649451458173cf39ba0cbfc6697e1e
parent 29259 260d49e11c293cc9f25b0b5636fa9c2ca8d69508
child 29261 ef9be31bf1c2ed8c61bbbb3918bf1b363573eb2f
push id2068
push userclokep@gmail.com
push dateMon, 13 Nov 2017 19:02:14 +0000
treeherdercomm-beta@9c7e7ce8672b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1411901, 1403346
Bug 1411901 - Port bug 1403346 to C-C: Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=jorgk
calendar/libical/src/libical/moz.build
ldap/ldap-sdk.mozbuild
--- a/calendar/libical/src/libical/moz.build
+++ b/calendar/libical/src/libical/moz.build
@@ -24,17 +24,17 @@ UNIFIED_SOURCES += [
     'icaltypes.c',
     'icalvalue.c',
     'pvl.c',
     'sspm.c',
     'vsnprintf.c',
 ]
 
 # We allow warnings for third-party code that can be updated from upstream.
-ALLOW_COMPILER_WARNINGS = True
+AllowCompilerWarnings()
 
 FINAL_LIBRARY = 'xul'
 
 LOCAL_INCLUDES += [
     '../..'
 ]
 
 DEFINES['HAVE_CONFIG_H'] = True
--- a/ldap/ldap-sdk.mozbuild
+++ b/ldap/ldap-sdk.mozbuild
@@ -1,16 +1,16 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 NoVisibilityFlags()
 DisableStlWrapping()
-ALLOW_COMPILER_WARNINGS = True
+AllowCompilerWarnings()
 
 if CONFIG['OS_TARGET'] == 'Linux':
     DEFINES['LINUX'] = 1
     DEFINES['LINUX2_0'] = True
     DEFINES['linux'] = 1
 elif CONFIG['OS_TARGET'] == 'Darwin':
     DEFINES["DARWIN"] = 1
 elif CONFIG['OS_TARGET'] in ('OpenBSD', 'FreeBSD', 'NetBSD'):