Bug 1061794 - move -Wshadow flags additions in layout/style/ to moz.build; r=mshal

This commit is contained in:
Nathan Froyd 2014-07-28 11:26:16 -04:00
parent eceea95b1e
commit fe4904abce
2 changed files with 4 additions and 5 deletions

View File

@ -2,11 +2,6 @@
# 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/.
ifdef GNU_CC
OS_CFLAGS := $(OS_CFLAGS) -Wshadow
OS_CXXFLAGS := $(OS_CXXFLAGS) -Wshadow
endif
INSTALL_TARGETS += structlist
structlist_FILES := nsStyleStructList.h
structlist_DEST = $(DIST)/include

View File

@ -168,3 +168,7 @@ RESOURCE_FILES += [
'TopLevelImageDocument.css',
'TopLevelVideoDocument.css',
]
if CONFIG['GNU_CC']:
CFLAGS += ['-Wshadow']
CXXFLAGS += ['-Wshadow']