[go: nahoru, domu]

Attachment #8751960: part-1-Wno-error-shadow.patch for bug #1272513

View | Details | Raw Unified | Return to bug 1272513
Collapse All | Expand All

(-)a/accessible/atk/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 50-58   if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT'] Link Here 
50
if CONFIG['MOZ_ENABLE_DBUS']:
50
if CONFIG['MOZ_ENABLE_DBUS']:
51
    CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
51
    CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
52
52
53
include('/ipc/chromium/chromium-config.mozbuild')
53
include('/ipc/chromium/chromium-config.mozbuild')
54
54
55
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
55
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
56
    # Used in G_DEFINE_TYPE_EXTENDED macro, probably fixed in newer glib /
56
    # Used in G_DEFINE_TYPE_EXTENDED macro, probably fixed in newer glib /
57
    # gobject headers. See bug 1243331 comment 3.
57
    # gobject headers. See bug 1243331 comment 3.
58
    CXXFLAGS += ['-Wno-unused-local-typedefs']
58
    CXXFLAGS += [
59
        '-Wno-error=shadow',
60
        '-Wno-unused-local-typedefs',
61
    ]
(-)a/accessible/base/moz.build (+3 lines)
Line     Link Here 
 Lines 92-99   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co Link Here 
92
else:
92
else:
93
    LOCAL_INCLUDES += [
93
    LOCAL_INCLUDES += [
94
        '/accessible/other',
94
        '/accessible/other',
95
    ]
95
    ]
96
96
97
FINAL_LIBRARY = 'xul'
97
FINAL_LIBRARY = 'xul'
98
98
99
include('/ipc/chromium/chromium-config.mozbuild')
99
include('/ipc/chromium/chromium-config.mozbuild')
100
101
if CONFIG['GNU_CXX']:
102
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/generic/moz.build (+3 lines)
Line     Link Here 
 Lines 52-59   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co Link Here 
52
else:
52
else:
53
    LOCAL_INCLUDES += [
53
    LOCAL_INCLUDES += [
54
        '/accessible/other',
54
        '/accessible/other',
55
    ]
55
    ]
56
56
57
FINAL_LIBRARY = 'xul'
57
FINAL_LIBRARY = 'xul'
58
58
59
include('/ipc/chromium/chromium-config.mozbuild')
59
include('/ipc/chromium/chromium-config.mozbuild')
60
61
if CONFIG['GNU_CXX']:
62
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/html/moz.build (+3 lines)
Line     Link Here 
 Lines 38-45   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co Link Here 
38
        '/accessible/mac',
38
        '/accessible/mac',
39
    ]
39
    ]
40
else:
40
else:
41
    LOCAL_INCLUDES += [
41
    LOCAL_INCLUDES += [
42
        '/accessible/other',
42
        '/accessible/other',
43
    ]
43
    ]
44
44
45
FINAL_LIBRARY = 'xul'
45
FINAL_LIBRARY = 'xul'
46
47
if CONFIG['GNU_CXX']:
48
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/ipc/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   if CONFIG['ACCESSIBILITY']: Link Here 
43
    else:
43
    else:
44
        LOCAL_INCLUDES += [
44
        LOCAL_INCLUDES += [
45
            '/accessible/other',
45
            '/accessible/other',
46
        ]
46
        ]
47
47
48
    FINAL_LIBRARY = 'xul'
48
    FINAL_LIBRARY = 'xul'
49
49
50
include('/ipc/chromium/chromium-config.mozbuild')
50
include('/ipc/chromium/chromium-config.mozbuild')
51
52
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/other/moz.build (+3 lines)
Line     Link Here 
 Lines 17-24   SOURCES += [ Link Here 
17
LOCAL_INCLUDES += [
17
LOCAL_INCLUDES += [
18
    '/accessible/base',
18
    '/accessible/base',
19
    '/accessible/generic',
19
    '/accessible/generic',
20
    '/accessible/html',
20
    '/accessible/html',
21
    '/accessible/xul',
21
    '/accessible/xul',
22
]
22
]
23
23
24
FINAL_LIBRARY = 'xul'
24
FINAL_LIBRARY = 'xul'
25
26
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
27
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/xpcom/moz.build (+3 lines)
Line     Link Here 
 Lines 61-68   xpc_acc_events_h.inputs += ['AccEvents.c Link Here 
61
61
62
xpc_acc_events_cpp = GENERATED_FILES['xpcAccEvents.cpp']
62
xpc_acc_events_cpp = GENERATED_FILES['xpcAccEvents.cpp']
63
xpc_acc_events_cpp.script = 'AccEventGen.py:gen_cpp_file'
63
xpc_acc_events_cpp.script = 'AccEventGen.py:gen_cpp_file'
64
xpc_acc_events_cpp.inputs += ['AccEvents.conf']
64
xpc_acc_events_cpp.inputs += ['AccEvents.conf']
65
65
66
FINAL_LIBRARY = 'xul'
66
FINAL_LIBRARY = 'xul'
67
67
68
include('/ipc/chromium/chromium-config.mozbuild')
68
include('/ipc/chromium/chromium-config.mozbuild')
69
70
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
71
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/accessible/xul/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co Link Here 
43
        '/accessible/mac',
43
        '/accessible/mac',
44
    ]
44
    ]
45
else:
45
else:
46
    LOCAL_INCLUDES += [
46
    LOCAL_INCLUDES += [
47
        '/accessible/other',
47
        '/accessible/other',
48
    ]
48
    ]
49
49
50
FINAL_LIBRARY = 'xul'
50
FINAL_LIBRARY = 'xul'
51
52
if CONFIG['GNU_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/caps/moz.build (+3 lines)
Line     Link Here 
 Lines 55-62   LOCAL_INCLUDES += [ Link Here 
55
]
55
]
56
56
57
if CONFIG['ENABLE_TESTS']:
57
if CONFIG['ENABLE_TESTS']:
58
    DIRS += ['tests/gtest']
58
    DIRS += ['tests/gtest']
59
59
60
include('/ipc/chromium/chromium-config.mozbuild')
60
include('/ipc/chromium/chromium-config.mozbuild')
61
61
62
FINAL_LIBRARY = 'xul'
62
FINAL_LIBRARY = 'xul'
63
64
if CONFIG['GNU_CXX']:
65
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/devtools/shared/heapsnapshot/moz.build (+3 lines)
Line     Link Here 
 Lines 52-59   DevToolsModules( Link Here 
52
    'census-tree-node.js',
52
    'census-tree-node.js',
53
    'CensusUtils.js',
53
    'CensusUtils.js',
54
    'DominatorTreeNode.js',
54
    'DominatorTreeNode.js',
55
    'HeapAnalysesClient.js',
55
    'HeapAnalysesClient.js',
56
    'HeapAnalysesWorker.js',
56
    'HeapAnalysesWorker.js',
57
    'HeapSnapshotFileUtils.js',
57
    'HeapSnapshotFileUtils.js',
58
    'shortest-paths.js',
58
    'shortest-paths.js',
59
)
59
)
60
61
if CONFIG['GNU_CXX']:
62
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/devtools/shared/heapsnapshot/tests/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 15-28   UNIFIED_SOURCES = [ Link Here 
15
    'DeserializedStackFrameUbiStackFrames.cpp',
15
    'DeserializedStackFrameUbiStackFrames.cpp',
16
    'DoesCrossCompartmentBoundaries.cpp',
16
    'DoesCrossCompartmentBoundaries.cpp',
17
    'DoesntCrossCompartmentBoundaries.cpp',
17
    'DoesntCrossCompartmentBoundaries.cpp',
18
    'SerializesEdgeNames.cpp',
18
    'SerializesEdgeNames.cpp',
19
    'SerializesEverythingInHeapGraphOnce.cpp',
19
    'SerializesEverythingInHeapGraphOnce.cpp',
20
    'SerializesTypeNames.cpp',
20
    'SerializesTypeNames.cpp',
21
]
21
]
22
22
23
if CONFIG['GNU_CXX']:
24
    CXXFLAGS += ['-Wno-error=shadow']
25
23
# THE MOCK_METHOD2 macro from gtest triggers this clang warning and it's hard
26
# THE MOCK_METHOD2 macro from gtest triggers this clang warning and it's hard
24
# to work around, so we just ignore it.
27
# to work around, so we just ignore it.
25
if CONFIG['CLANG_CXX']:
28
if CONFIG['CLANG_CXX']:
26
  CXXFLAGS += ['-Wno-inconsistent-missing-override']
29
  CXXFLAGS += ['-Wno-inconsistent-missing-override']
27
30
28
FINAL_LIBRARY = 'xul-gtest'
31
FINAL_LIBRARY = 'xul-gtest'
(-)a/docshell/base/moz.build (+3 lines)
Line     Link Here 
 Lines 78-85   LOCAL_INCLUDES += [ Link Here 
78
    '/tools/profiler',
78
    '/tools/profiler',
79
]
79
]
80
80
81
if CONFIG['MOZ_TOOLKIT_SEARCH']:
81
if CONFIG['MOZ_TOOLKIT_SEARCH']:
82
    DEFINES['MOZ_TOOLKIT_SEARCH'] = True
82
    DEFINES['MOZ_TOOLKIT_SEARCH'] = True
83
83
84
if CONFIG['MOZ_DEVTOOLS'] == 'all':
84
if CONFIG['MOZ_DEVTOOLS'] == 'all':
85
    DEFINES['MOZ_DEVTOOLS_ALL'] = True
85
    DEFINES['MOZ_DEVTOOLS_ALL'] = True
86
87
if CONFIG['GNU_CXX']:
88
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/docshell/shistory/moz.build (+3 lines)
Line     Link Here 
 Lines 30-37   UNIFIED_SOURCES += [ Link Here 
30
LOCAL_INCLUDES += [
30
LOCAL_INCLUDES += [
31
    '/docshell/base',
31
    '/docshell/base',
32
]
32
]
33
33
34
FINAL_LIBRARY = 'xul'
34
FINAL_LIBRARY = 'xul'
35
35
36
if CONFIG['CLANG_CXX']:
36
if CONFIG['CLANG_CXX']:
37
    CXXFLAGS += ['-Wshadow']
37
    CXXFLAGS += ['-Wshadow']
38
elif CONFIG['GNU_CXX']:
39
    CXXFLAGS += ['-Wno-error=shadow']
40
(-)a/dom/base/moz.build (+3 lines)
Line     Link Here 
 Lines 490-497   GENERATED_FILES += [ Link Here 
490
490
491
countermap = GENERATED_FILES['PropertyUseCounterMap.inc']
491
countermap = GENERATED_FILES['PropertyUseCounterMap.inc']
492
countermap.script = 'gen-usecounters.py:property_map'
492
countermap.script = 'gen-usecounters.py:property_map'
493
countermap.inputs = ['UseCounters.conf']
493
countermap.inputs = ['UseCounters.conf']
494
494
495
counterlist = GENERATED_FILES['UseCounterList.h']
495
counterlist = GENERATED_FILES['UseCounterList.h']
496
counterlist.script = 'gen-usecounters.py:use_counter_list'
496
counterlist.script = 'gen-usecounters.py:use_counter_list'
497
counterlist.inputs = ['UseCounters.conf']
497
counterlist.inputs = ['UseCounters.conf']
498
499
if CONFIG['GNU_CXX']:
500
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/bindings/moz.build (+3 lines)
Line     Link Here 
 Lines 140-147   if CONFIG['MOZ_BUILD_APP'] in ['browser' Link Here 
140
140
141
141
142
if CONFIG['MOZ_SIMPLEPUSH']:
142
if CONFIG['MOZ_SIMPLEPUSH']:
143
    DEFINES['MOZ_SIMPLEPUSH'] = True
143
    DEFINES['MOZ_SIMPLEPUSH'] = True
144
144
145
PYTHON_UNIT_TESTS += [
145
PYTHON_UNIT_TESTS += [
146
    'mozwebidlcodegen/test/test_mozwebidlcodegen.py',
146
    'mozwebidlcodegen/test/test_mozwebidlcodegen.py',
147
]
147
]
148
149
if CONFIG['GNU_CXX']:
150
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/bindings/test/moz.build (+3 lines)
Line     Link Here 
 Lines 47-54   LOCAL_INCLUDES += [ Link Here 
47
]
47
]
48
48
49
LOCAL_INCLUDES += [
49
LOCAL_INCLUDES += [
50
    '!..',
50
    '!..',
51
    '/dom/bindings',
51
    '/dom/bindings',
52
    '/js/xpconnect/src',
52
    '/js/xpconnect/src',
53
    '/js/xpconnect/wrappers',
53
    '/js/xpconnect/wrappers',
54
]
54
]
55
56
if CONFIG['GNU_CXX']:
57
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/cache/moz.build (+3 lines)
Line     Link Here 
 Lines 95-102   MOCHITEST_MANIFESTS += [ Link Here 
95
95
96
BROWSER_CHROME_MANIFESTS += [
96
BROWSER_CHROME_MANIFESTS += [
97
    'test/mochitest/browser.ini',
97
    'test/mochitest/browser.ini',
98
]
98
]
99
99
100
XPCSHELL_TESTS_MANIFESTS += [
100
XPCSHELL_TESTS_MANIFESTS += [
101
    'test/xpcshell/xpcshell.ini',
101
    'test/xpcshell/xpcshell.ini',
102
]
102
]
103
104
if CONFIG['GNU_CXX']:
105
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/camera/moz.build (-1 / +3 lines)
Line     Link Here 
 Lines 67-77   LOCAL_INCLUDES += [ Link Here 
67
]
67
]
68
68
69
include('/ipc/chromium/chromium-config.mozbuild')
69
include('/ipc/chromium/chromium-config.mozbuild')
70
70
71
# Suppress some GCC warnings being treated as errors:
71
# Suppress some GCC warnings being treated as errors:
72
#  - about attributes on forward declarations for types that are already
72
#  - about attributes on forward declarations for types that are already
73
#    defined, which complains about an important MOZ_EXPORT for android::AString
73
#    defined, which complains about an important MOZ_EXPORT for android::AString
74
if CONFIG['GNU_CC']:
74
if CONFIG['GNU_CC']:
75
  CXXFLAGS += ['-Wno-error=attributes']
75
    CXXFLAGS += ['-Wno-error=attributes']
76
    if CONFIG['CLANG_CXX']:
77
        CXXFLAGS += ['-Wno-error=shadow']
76
78
77
FINAL_LIBRARY = 'xul'
79
FINAL_LIBRARY = 'xul'
(-)a/dom/canvas/moz.build (+3 lines)
Line     Link Here 
 Lines 182-193   LOCAL_INCLUDES += [ Link Here 
182
    '/media/libyuv/include',
182
    '/media/libyuv/include',
183
]
183
]
184
184
185
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
185
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
186
CXXFLAGS += CONFIG['TK_CFLAGS']
186
CXXFLAGS += CONFIG['TK_CFLAGS']
187
187
188
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
188
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
189
189
190
if CONFIG['GNU_CXX']:
191
    CXXFLAGS += ['-Wno-error=shadow']
192
190
if CONFIG['_MSC_VER']:
193
if CONFIG['_MSC_VER']:
191
    # This is intended as a temporary workaround to unblock compilation
194
    # This is intended as a temporary workaround to unblock compilation
192
    # on VS2015 in warnings as errors mode.
195
    # on VS2015 in warnings as errors mode.
193
    CXXFLAGS += ['-wd4312']
196
    CXXFLAGS += ['-wd4312']
(-)a/dom/events/moz.build (+3 lines)
Line     Link Here 
 Lines 146-153   LOCAL_INCLUDES += [ Link Here 
146
    '/layout/xul',
146
    '/layout/xul',
147
    '/layout/xul/tree/',
147
    '/layout/xul/tree/',
148
]
148
]
149
149
150
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
150
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
151
    LOCAL_INCLUDES += [
151
    LOCAL_INCLUDES += [
152
        '/dom/wifi',
152
        '/dom/wifi',
153
    ]
153
    ]
154
155
if CONFIG['GNU_CXX']:
156
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/html/moz.build (+3 lines)
Line     Link Here 
 Lines 241-248   LOCAL_INCLUDES += [ Link Here 
241
    '/layout/generic',
241
    '/layout/generic',
242
    '/layout/style',
242
    '/layout/style',
243
    '/layout/tables',
243
    '/layout/tables',
244
    '/layout/xul',
244
    '/layout/xul',
245
    '/netwerk/base',
245
    '/netwerk/base',
246
]
246
]
247
247
248
FINAL_LIBRARY = 'xul'
248
FINAL_LIBRARY = 'xul'
249
250
if CONFIG['GNU_CXX']:
251
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/indexedDB/moz.build (+1 lines)
Line     Link Here 
 Lines 93-108   IPDL_SOURCES += [ Link Here 
93
include('/ipc/chromium/chromium-config.mozbuild')
93
include('/ipc/chromium/chromium-config.mozbuild')
94
94
95
FINAL_LIBRARY = 'xul'
95
FINAL_LIBRARY = 'xul'
96
96
97
if CONFIG['GNU_CC']:
97
if CONFIG['GNU_CC']:
98
    # Suppress gcc warning about a comparison being always false due to the
98
    # Suppress gcc warning about a comparison being always false due to the
99
    # range of the data type
99
    # range of the data type
100
    SOURCES['Key.cpp'].flags += ['-Wno-error=type-limits']
100
    SOURCES['Key.cpp'].flags += ['-Wno-error=type-limits']
101
    CXXFLAGS += ['-Wno-error=shadow']
101
102
102
if CONFIG['_MSC_VER']:
103
if CONFIG['_MSC_VER']:
103
    # This is intended as a temporary hack to support building with VS2015.
104
    # This is intended as a temporary hack to support building with VS2015.
104
    CXXFLAGS += ['-wd4577']
105
    CXXFLAGS += ['-wd4577']
105
106
106
LOCAL_INCLUDES += [
107
LOCAL_INCLUDES += [
107
    '/db/sqlite3/src',
108
    '/db/sqlite3/src',
108
    '/dom/base',
109
    '/dom/base',
(-)a/dom/ipc/moz.build (+3 lines)
Line     Link Here 
 Lines 175-182   if CONFIG['MOZ_TOOLKIT_SEARCH']: Link Here 
175
175
176
JAR_MANIFESTS += ['jar.mn']
176
JAR_MANIFESTS += ['jar.mn']
177
177
178
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
178
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
179
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
179
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
180
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
180
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
181
181
182
CXXFLAGS += CONFIG['TK_CFLAGS']
182
CXXFLAGS += CONFIG['TK_CFLAGS']
183
184
if CONFIG['GNU_CXX']:
185
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/bridge/moz.build (+3 lines)
Line     Link Here 
 Lines 21-28   LOCAL_INCLUDES += [ Link Here 
21
    '/media/webrtc/',
21
    '/media/webrtc/',
22
    '/media/webrtc/signaling/src/common/time_profiling',
22
    '/media/webrtc/signaling/src/common/time_profiling',
23
    '/media/webrtc/signaling/src/media-conduit',
23
    '/media/webrtc/signaling/src/media-conduit',
24
    '/media/webrtc/signaling/src/mediapipeline',
24
    '/media/webrtc/signaling/src/mediapipeline',
25
    '/media/webrtc/signaling/src/peerconnection',
25
    '/media/webrtc/signaling/src/peerconnection',
26
]
26
]
27
27
28
FINAL_LIBRARY = 'xul'
28
FINAL_LIBRARY = 'xul'
29
30
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
31
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/gmp/moz.build (+3 lines)
Line     Link Here 
 Lines 146-153   include('/ipc/chromium/chromium-config.m Link Here 
146
FINAL_LIBRARY = 'xul'
146
FINAL_LIBRARY = 'xul'
147
# media/mtransport so we work with --disable-webrtc
147
# media/mtransport so we work with --disable-webrtc
148
LOCAL_INCLUDES += [
148
LOCAL_INCLUDES += [
149
    '/media/mtransport',
149
    '/media/mtransport',
150
    '/xpcom/base',
150
    '/xpcom/base',
151
    '/xpcom/build',
151
    '/xpcom/build',
152
    '/xpcom/threads',
152
    '/xpcom/threads',
153
]
153
]
154
155
if CONFIG['GNU_CXX']:
156
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/gmp/widevine-adapter/moz.build (+3 lines)
Line     Link Here 
 Lines 12-19   SOURCES += [ Link Here 
12
    'WidevineVideoFrame.cpp',
12
    'WidevineVideoFrame.cpp',
13
]
13
]
14
14
15
FINAL_LIBRARY = 'xul'
15
FINAL_LIBRARY = 'xul'
16
16
17
LOCAL_INCLUDES += [
17
LOCAL_INCLUDES += [
18
    '/dom/media/gmp',
18
    '/dom/media/gmp',
19
]
19
]
20
21
if CONFIG['CLANG_CXX']:
22
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 67-74   LOCAL_INCLUDES += [ Link Here 
67
    '/dom/media/encoder',
67
    '/dom/media/encoder',
68
    '/dom/media/fmp4',
68
    '/dom/media/fmp4',
69
    '/dom/media/gmp',
69
    '/dom/media/gmp',
70
    '/security/certverifier',
70
    '/security/certverifier',
71
    '/security/pkix/include',
71
    '/security/pkix/include',
72
]
72
]
73
73
74
FINAL_LIBRARY = 'xul-gtest'
74
FINAL_LIBRARY = 'xul-gtest'
75
76
if CONFIG['GNU_CXX']:
77
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/mediasink/moz.build (+3 lines)
Line     Link Here 
 Lines 8-15   UNIFIED_SOURCES += [ Link Here 
8
    'AudioSinkWrapper.cpp',
8
    'AudioSinkWrapper.cpp',
9
    'DecodedAudioDataSink.cpp',
9
    'DecodedAudioDataSink.cpp',
10
    'DecodedStream.cpp',
10
    'DecodedStream.cpp',
11
    'OutputStreamManager.cpp',
11
    'OutputStreamManager.cpp',
12
    'VideoSink.cpp',
12
    'VideoSink.cpp',
13
]
13
]
14
14
15
FINAL_LIBRARY = 'xul'
15
FINAL_LIBRARY = 'xul'
16
17
if CONFIG['GNU_CXX']:
18
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/mediasource/moz.build (+3 lines)
Line     Link Here 
 Lines 37-44   UNIFIED_SOURCES += [ Link Here 
37
TEST_DIRS += [
37
TEST_DIRS += [
38
    'gtest',
38
    'gtest',
39
]
39
]
40
40
41
if CONFIG['MOZ_GONK_MEDIACODEC']:
41
if CONFIG['MOZ_GONK_MEDIACODEC']:
42
    DEFINES['MOZ_GONK_MEDIACODEC'] = True
42
    DEFINES['MOZ_GONK_MEDIACODEC'] = True
43
43
44
FINAL_LIBRARY = 'xul'
44
FINAL_LIBRARY = 'xul'
45
46
if CONFIG['GNU_CXX']:
47
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 332-347   if CONFIG['MOZ_GONK_MEDIACODEC']: Link Here 
332
    DEFINES['MOZ_GONK_MEDIACODEC'] = True
332
    DEFINES['MOZ_GONK_MEDIACODEC'] = True
333
333
334
include('/ipc/chromium/chromium-config.mozbuild')
334
include('/ipc/chromium/chromium-config.mozbuild')
335
335
336
# Suppress some GCC warnings being treated as errors:
336
# Suppress some GCC warnings being treated as errors:
337
#  - about attributes on forward declarations for types that are already
337
#  - about attributes on forward declarations for types that are already
338
#    defined, which complains about an important MOZ_EXPORT for android::AString
338
#    defined, which complains about an important MOZ_EXPORT for android::AString
339
if CONFIG['GNU_CC']:
339
if CONFIG['GNU_CC']:
340
  CXXFLAGS += ['-Wno-error=attributes']
340
    CXXFLAGS += [
341
        '-Wno-error=attributes',
342
        '-Wno-error=shadow',
343
    ]
341
344
342
if CONFIG['_MSC_VER']:
345
if CONFIG['_MSC_VER']:
343
    # This is intended as a temporary workaround to unblock compilation
346
    # This is intended as a temporary workaround to unblock compilation
344
    # on VS2015 in warnings as errors mode.
347
    # on VS2015 in warnings as errors mode.
345
    CXXFLAGS += ['-wd4312']
348
    CXXFLAGS += ['-wd4312']
346
349
347
FINAL_LIBRARY = 'xul'
350
FINAL_LIBRARY = 'xul'
(-)a/dom/media/ogg/moz.build (+3 lines)
Line     Link Here 
 Lines 16-23   UNIFIED_SOURCES += [ Link Here 
16
    'OggCodecState.cpp',
16
    'OggCodecState.cpp',
17
    'OggDecoder.cpp',
17
    'OggDecoder.cpp',
18
    'OggReader.cpp',
18
    'OggReader.cpp',
19
    'OggWriter.cpp',
19
    'OggWriter.cpp',
20
    'OpusParser.cpp',
20
    'OpusParser.cpp',
21
]
21
]
22
22
23
FINAL_LIBRARY = 'xul'
23
FINAL_LIBRARY = 'xul'
24
25
if CONFIG['GNU_CXX']:
26
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/platforms/moz.build (+3 lines)
Line     Link Here 
 Lines 83-90   if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'andr Link Here 
83
    EXPORTS += [
83
    EXPORTS += [
84
        'android/AndroidDecoderModule.h',
84
        'android/AndroidDecoderModule.h',
85
    ]
85
    ]
86
    UNIFIED_SOURCES += [
86
    UNIFIED_SOURCES += [
87
        'android/AndroidDecoderModule.cpp',
87
        'android/AndroidDecoderModule.cpp',
88
    ]
88
    ]
89
89
90
FINAL_LIBRARY = 'xul'
90
FINAL_LIBRARY = 'xul'
91
92
if CONFIG['GNU_CXX']:
93
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/platforms/omx/moz.build (+3 lines)
Line     Link Here 
 Lines 40-47   if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk Link Here 
40
    UNIFIED_SOURCES += [
40
    UNIFIED_SOURCES += [
41
        'GonkOmxPlatformLayer.cpp',
41
        'GonkOmxPlatformLayer.cpp',
42
    ]
42
    ]
43
    EXTRA_DSO_LDOPTS += [
43
    EXTRA_DSO_LDOPTS += [
44
        '-libbinder',
44
        '-libbinder',
45
    ]
45
    ]
46
46
47
FINAL_LIBRARY = 'xul'
47
FINAL_LIBRARY = 'xul'
48
49
if CONFIG['GNU_CXX']:
50
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/standalone/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 36-44   DEFINES['MOZILLA_INTERNAL_API'] = True Link Here 
36
DEFINES['MOZILLA_EXTERNAL_LINKAGE'] = True
36
DEFINES['MOZILLA_EXTERNAL_LINKAGE'] = True
37
37
38
include('/ipc/chromium/chromium-config.mozbuild')
38
include('/ipc/chromium/chromium-config.mozbuild')
39
39
40
# Suppress some GCC warnings being treated as errors:
40
# Suppress some GCC warnings being treated as errors:
41
#  - about attributes on forward declarations for types that are already
41
#  - about attributes on forward declarations for types that are already
42
#    defined, which complains about an important MOZ_EXPORT for android::AString
42
#    defined, which complains about an important MOZ_EXPORT for android::AString
43
if CONFIG['GNU_CC']:
43
if CONFIG['GNU_CC']:
44
    CXXFLAGS += ['-Wno-error=attributes']
44
    CXXFLAGS += [
45
        '-Wno-error=attributes',
46
        '-Wno-error=shadow',
47
    ]
(-)a/dom/media/systemservices/moz.build (+3 lines)
Line     Link Here 
 Lines 93-100   IPDL_SOURCES += [ Link Here 
93
# /dom/base needed for nsGlobalWindow.h in MediaChild.cpp
93
# /dom/base needed for nsGlobalWindow.h in MediaChild.cpp
94
LOCAL_INCLUDES += [
94
LOCAL_INCLUDES += [
95
    '/dom/base',
95
    '/dom/base',
96
]
96
]
97
97
98
include('/ipc/chromium/chromium-config.mozbuild')
98
include('/ipc/chromium/chromium-config.mozbuild')
99
99
100
FINAL_LIBRARY = 'xul'
100
FINAL_LIBRARY = 'xul'
101
102
if CONFIG['GNU_CXX']:
103
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/wave/moz.build (+3 lines)
Line     Link Here 
 Lines 12-19   EXPORTS += [ Link Here 
12
12
13
UNIFIED_SOURCES += [
13
UNIFIED_SOURCES += [
14
    'WaveDecoder.cpp',
14
    'WaveDecoder.cpp',
15
    'WaveDemuxer.cpp',
15
    'WaveDemuxer.cpp',
16
    'WaveReader.cpp',
16
    'WaveReader.cpp',
17
]
17
]
18
18
19
FINAL_LIBRARY = 'xul'
19
FINAL_LIBRARY = 'xul'
20
21
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
22
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/webaudio/blink/moz.build (+3 lines)
Line     Link Here 
 Lines 28-35   if CONFIG['INTEL_ARCHITECTURE']: Link Here 
28
    DEFINES['USE_SSE2'] = True
28
    DEFINES['USE_SSE2'] = True
29
29
30
include('/ipc/chromium/chromium-config.mozbuild')
30
include('/ipc/chromium/chromium-config.mozbuild')
31
31
32
FINAL_LIBRARY = 'xul'
32
FINAL_LIBRARY = 'xul'
33
LOCAL_INCLUDES += [
33
LOCAL_INCLUDES += [
34
    '/dom/media/webaudio',
34
    '/dom/media/webaudio',
35
]
35
]
36
37
if CONFIG['GNU_CXX']:
38
    CXXFLAGS += ['-Wno-shadow']
(-)a/dom/media/webaudio/moz.build (+2 lines)
Line     Link Here 
 Lines 123-130   if CONFIG['INTEL_ARCHITECTURE']: Link Here 
123
123
124
include('/ipc/chromium/chromium-config.mozbuild')
124
include('/ipc/chromium/chromium-config.mozbuild')
125
125
126
FINAL_LIBRARY = 'xul'
126
FINAL_LIBRARY = 'xul'
127
LOCAL_INCLUDES += [
127
LOCAL_INCLUDES += [
128
    '..'
128
    '..'
129
]
129
]
130
130
131
if CONFIG['GNU_CXX']:
132
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/webm/moz.build (+3 lines)
Line     Link Here 
 Lines 21-28   if CONFIG['MOZ_WEBM_ENCODER']: Link Here 
21
    EXPORTS += ['WebMWriter.h']
21
    EXPORTS += ['WebMWriter.h']
22
    UNIFIED_SOURCES += ['EbmlComposer.cpp',
22
    UNIFIED_SOURCES += ['EbmlComposer.cpp',
23
                        'WebMWriter.cpp',
23
                        'WebMWriter.cpp',
24
    ]
24
    ]
25
25
26
CXXFLAGS += CONFIG['MOZ_LIBVPX_CFLAGS']
26
CXXFLAGS += CONFIG['MOZ_LIBVPX_CFLAGS']
27
27
28
FINAL_LIBRARY = 'xul'
28
FINAL_LIBRARY = 'xul'
29
30
if CONFIG['GNU_CXX']:
31
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/webrtc/moz.build (-1 / +2 lines)
Line     Link Here 
 Lines 79-95   EXPORTS.mozilla.dom += [ Link Here 
79
include('/ipc/chromium/chromium-config.mozbuild')
79
include('/ipc/chromium/chromium-config.mozbuild')
80
80
81
# Suppress some GCC/clang warnings being treated as errors:
81
# Suppress some GCC/clang warnings being treated as errors:
82
#  - about attributes on forward declarations for types that are already
82
#  - about attributes on forward declarations for types that are already
83
#    defined, which complains about important MOZ_EXPORT attributes for
83
#    defined, which complains about important MOZ_EXPORT attributes for
84
#    android API types
84
#    android API types
85
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
85
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
86
    CXXFLAGS += [
86
    CXXFLAGS += [
87
        '-Wno-error=attributes'
87
        '-Wno-error=attributes',
88
        '-Wno-error=shadow',
88
    ]
89
    ]
89
90
90
FINAL_LIBRARY = 'xul'
91
FINAL_LIBRARY = 'xul'
91
92
92
if CONFIG['_MSC_VER']:
93
if CONFIG['_MSC_VER']:
93
    CXXFLAGS += [
94
    CXXFLAGS += [
94
        '-wd4275', # non dll-interface class used as base for dll-interface class
95
        '-wd4275', # non dll-interface class used as base for dll-interface class
95
        '-wd4312', # This is intended as a temporary hack to support building with VS2015
96
        '-wd4312', # This is intended as a temporary hack to support building with VS2015
(-)a/dom/media/webspeech/recognition/moz.build (+3 lines)
Line     Link Here 
 Lines 78-85   if CONFIG['MOZ_WEBSPEECH_MODELS']: Link Here 
78
		'models/en-US/sendump',
78
		'models/en-US/sendump',
79
		'models/en-US/transition_matrices',
79
		'models/en-US/transition_matrices',
80
		'models/en-US/variances',
80
		'models/en-US/variances',
81
    ]
81
    ]
82
82
83
include('/ipc/chromium/chromium-config.mozbuild')
83
include('/ipc/chromium/chromium-config.mozbuild')
84
84
85
FINAL_LIBRARY = 'xul'
85
FINAL_LIBRARY = 'xul'
86
87
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
88
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/media/webspeech/synth/moz.build (+3 lines)
Line     Link Here 
 Lines 60-67   IPDL_SOURCES += [ Link Here 
60
]
60
]
61
61
62
include('/ipc/chromium/chromium-config.mozbuild')
62
include('/ipc/chromium/chromium-config.mozbuild')
63
63
64
FINAL_LIBRARY = 'xul'
64
FINAL_LIBRARY = 'xul'
65
LOCAL_INCLUDES += [
65
LOCAL_INCLUDES += [
66
    'ipc',
66
    'ipc',
67
]
67
]
68
69
if CONFIG['CLANG_CXX']:
70
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/mobileconnection/moz.build (+3 lines)
Line     Link Here 
 Lines 73-80   LOCAL_INCLUDES += [ Link Here 
73
    '/dom/system/gonk',
73
    '/dom/system/gonk',
74
]
74
]
75
75
76
include('/ipc/chromium/chromium-config.mozbuild')
76
include('/ipc/chromium/chromium-config.mozbuild')
77
77
78
FINAL_LIBRARY = 'xul'
78
FINAL_LIBRARY = 'xul'
79
79
80
XPIDL_MODULE = 'dom_mobileconnection'
80
XPIDL_MODULE = 'dom_mobileconnection'
81
82
if CONFIG['GNU_CXX']:
83
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/mobilemessage/moz.build (+3 lines)
Line     Link Here 
 Lines 81-88   IPDL_SOURCES += [ Link Here 
81
LOCAL_INCLUDES += [
81
LOCAL_INCLUDES += [
82
    '/dom/base',
82
    '/dom/base',
83
    '/widget/android',
83
    '/widget/android',
84
]
84
]
85
85
86
include('/ipc/chromium/chromium-config.mozbuild')
86
include('/ipc/chromium/chromium-config.mozbuild')
87
87
88
FINAL_LIBRARY = 'xul'
88
FINAL_LIBRARY = 'xul'
89
90
if CONFIG['GNU_CXX']:
91
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/network/moz.build (+3 lines)
Line     Link Here 
 Lines 69-76   IPDL_SOURCES += [ Link Here 
69
    'PTCPServerSocket.ipdl',
69
    'PTCPServerSocket.ipdl',
70
    'PTCPSocket.ipdl',
70
    'PTCPSocket.ipdl',
71
    'PUDPSocket.ipdl',
71
    'PUDPSocket.ipdl',
72
]
72
]
73
73
74
include('/ipc/chromium/chromium-config.mozbuild')
74
include('/ipc/chromium/chromium-config.mozbuild')
75
75
76
FINAL_LIBRARY = 'xul'
76
FINAL_LIBRARY = 'xul'
77
78
if CONFIG['CLANG_CXX']:
79
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/notification/moz.build (+3 lines)
Line     Link Here 
 Lines 33-40   FINAL_LIBRARY = 'xul' Link Here 
33
LOCAL_INCLUDES += [
33
LOCAL_INCLUDES += [
34
    '/dom/base',
34
    '/dom/base',
35
    '/dom/ipc',
35
    '/dom/ipc',
36
    '/dom/workers',
36
    '/dom/workers',
37
]
37
]
38
38
39
BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
39
BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
40
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
40
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
41
42
if CONFIG['GNU_CXX']:
43
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/plugins/base/moz.build (+3 lines)
Line     Link Here 
 Lines 111-118   if CONFIG['OS_ARCH'] == 'WINNT': Link Here 
111
include('/ipc/chromium/chromium-config.mozbuild')
111
include('/ipc/chromium/chromium-config.mozbuild')
112
112
113
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
113
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
114
114
115
FINAL_LIBRARY = 'xul'
115
FINAL_LIBRARY = 'xul'
116
116
117
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
117
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
118
CXXFLAGS += CONFIG['TK_CFLAGS']
118
CXXFLAGS += CONFIG['TK_CFLAGS']
119
120
if CONFIG['GNU_CXX']:
121
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/plugins/ipc/moz.build (+3 lines)
Line     Link Here 
 Lines 143-157   DEFINES['FORCE_PR_LOG'] = True Link Here 
143
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
143
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
144
    CXXFLAGS += CONFIG['TK_CFLAGS']
144
    CXXFLAGS += CONFIG['TK_CFLAGS']
145
else:
145
else:
146
    # Force build against gtk+2 for struct offsets and such.
146
    # Force build against gtk+2 for struct offsets and such.
147
    CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
147
    CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
148
148
149
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
149
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
150
150
151
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
152
    CXXFLAGS += ['-Wno-error=shadow']
153
151
if CONFIG['_MSC_VER']:
154
if CONFIG['_MSC_VER']:
152
    # This is intended as a temporary hack to support building with VS2015.
155
    # This is intended as a temporary hack to support building with VS2015.
153
    # conversion from 'X' to 'Y' requires a narrowing conversion
156
    # conversion from 'X' to 'Y' requires a narrowing conversion
154
    CXXFLAGS += ['-wd4838']
157
    CXXFLAGS += ['-wd4838']
155
158
156
    # 'type cast': conversion from 'unsigned int' to 'HIMC' of greater size
159
    # 'type cast': conversion from 'unsigned int' to 'HIMC' of greater size
157
    CXXFLAGS += ['-wd4312']
160
    CXXFLAGS += ['-wd4312']
(-)a/dom/plugins/test/testplugin/testplugin.mozbuild (+3 lines)
Line     Link Here 
 Lines 73-80   if CONFIG['_MSC_VER']: Link Here 
73
    # conversion from 'X' to 'Y' requires a narrowing conversion
73
    # conversion from 'X' to 'Y' requires a narrowing conversion
74
    CXXFLAGS += ['-wd4838']
74
    CXXFLAGS += ['-wd4838']
75
75
76
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
76
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
77
    FINAL_TARGET = 'dist/plugins/%s.plugin/Contents/MacOS' % cocoa_name
77
    FINAL_TARGET = 'dist/plugins/%s.plugin/Contents/MacOS' % cocoa_name
78
    OBJDIR_FILES.dist.plugins['%s.plugin' % cocoa_name].Contents += ['%s/Info.plist' % relative_path]
78
    OBJDIR_FILES.dist.plugins['%s.plugin' % cocoa_name].Contents += ['%s/Info.plist' % relative_path]
79
else:
79
else:
80
    FINAL_TARGET = 'dist/plugins'
80
    FINAL_TARGET = 'dist/plugins'
81
82
if CONFIG['GNU_CXX']:
83
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/promise/moz.build (+3 lines)
Line     Link Here 
 Lines 28-35   include('/ipc/chromium/chromium-config.m Link Here 
28
28
29
FINAL_LIBRARY = 'xul'
29
FINAL_LIBRARY = 'xul'
30
30
31
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
31
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
32
32
33
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
33
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
34
34
35
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
35
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
36
37
if CONFIG['GNU_CXX']:
38
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/quota/moz.build (+2 lines)
Line     Link Here 
 Lines 42-49   IPDL_SOURCES += [ Link Here 
42
42
43
include('/ipc/chromium/chromium-config.mozbuild')
43
include('/ipc/chromium/chromium-config.mozbuild')
44
44
45
FINAL_LIBRARY = 'xul'
45
FINAL_LIBRARY = 'xul'
46
LOCAL_INCLUDES += [
46
LOCAL_INCLUDES += [
47
    '/caps',
47
    '/caps',
48
]
48
]
49
49
50
if CONFIG['GNU_CXX']:
51
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/svg/moz.build (+3 lines)
Line     Link Here 
 Lines 260-267   LOCAL_INCLUDES += [ Link Here 
260
    '/dom/xbl',
260
    '/dom/xbl',
261
    '/dom/xml',
261
    '/dom/xml',
262
    '/layout/base',
262
    '/layout/base',
263
    '/layout/generic',
263
    '/layout/generic',
264
    '/layout/style',
264
    '/layout/style',
265
    '/layout/svg',
265
    '/layout/svg',
266
    '/layout/xul',
266
    '/layout/xul',
267
]
267
]
268
269
if CONFIG['GNU_CXX']:
270
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/workers/moz.build (+3 lines)
Line     Link Here 
 Lines 130-137   BROWSER_CHROME_MANIFESTS += [ Link Here 
130
    'test/serviceworkers/browser.ini',
130
    'test/serviceworkers/browser.ini',
131
]
131
]
132
132
133
XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell/xpcshell.ini']
133
XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell/xpcshell.ini']
134
134
135
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
135
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
136
136
137
TEST_DIRS += ['test/gtest']
137
TEST_DIRS += ['test/gtest']
138
139
if CONFIG['GNU_CXX']:
140
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xbl/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   LOCAL_INCLUDES += [ Link Here 
43
    '/dom/xul',
43
    '/dom/xul',
44
    '/layout/style',
44
    '/layout/style',
45
]
45
]
46
46
47
FINAL_LIBRARY = 'xul'
47
FINAL_LIBRARY = 'xul'
48
48
49
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
49
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
50
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
50
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
51
52
if CONFIG['GNU_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xslt/base/moz.build (+3 lines)
Line     Link Here 
 Lines 16-23   UNIFIED_SOURCES += [ Link Here 
16
LOCAL_INCLUDES += [
16
LOCAL_INCLUDES += [
17
    '..',
17
    '..',
18
    '../xml',
18
    '../xml',
19
    '../xpath',
19
    '../xpath',
20
    '../xslt',
20
    '../xslt',
21
]
21
]
22
22
23
FINAL_LIBRARY = 'xul'
23
FINAL_LIBRARY = 'xul'
24
25
if CONFIG['GNU_CXX']:
26
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xslt/xpath/moz.build (+3 lines)
Line     Link Here 
 Lines 52-59   UNIFIED_SOURCES += [ Link Here 
52
52
53
LOCAL_INCLUDES += [
53
LOCAL_INCLUDES += [
54
    '../base',
54
    '../base',
55
    '../xml',
55
    '../xml',
56
    '../xslt',
56
    '../xslt',
57
]
57
]
58
58
59
FINAL_LIBRARY = 'xul'
59
FINAL_LIBRARY = 'xul'
60
61
if CONFIG['GNU_CXX']:
62
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xslt/xslt/moz.build (+3 lines)
Line     Link Here 
 Lines 52-59   LOCAL_INCLUDES += ["/dom/base"] Link Here 
52
LOCAL_INCLUDES += [
52
LOCAL_INCLUDES += [
53
    '../base',
53
    '../base',
54
    '../xml',
54
    '../xml',
55
    '../xpath',
55
    '../xpath',
56
    '/dom/base',
56
    '/dom/base',
57
]
57
]
58
58
59
FINAL_LIBRARY = 'xul'
59
FINAL_LIBRARY = 'xul'
60
61
if CONFIG['GNU_CXX']:
62
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xul/moz.build (+3 lines)
Line     Link Here 
 Lines 49-56   LOCAL_INCLUDES += [ Link Here 
49
    '/dom/xul/templates',
49
    '/dom/xul/templates',
50
    '/layout/base',
50
    '/layout/base',
51
    '/layout/generic',
51
    '/layout/generic',
52
    '/layout/style',
52
    '/layout/style',
53
    '/layout/xul',
53
    '/layout/xul',
54
]
54
]
55
55
56
FINAL_LIBRARY = 'xul'
56
FINAL_LIBRARY = 'xul'
57
58
if CONFIG['GNU_CXX']:
59
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/dom/xul/templates/moz.build (+3 lines)
Line     Link Here 
 Lines 48-55   UNIFIED_SOURCES += [ Link Here 
48
48
49
LOCAL_INCLUDES += [
49
LOCAL_INCLUDES += [
50
    '/dom/base',
50
    '/dom/base',
51
    '/dom/xul',
51
    '/dom/xul',
52
    '/layout/xul/tree/',
52
    '/layout/xul/tree/',
53
]
53
]
54
54
55
FINAL_LIBRARY = 'xul'
55
FINAL_LIBRARY = 'xul'
56
57
if CONFIG['GNU_CXX']:
58
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/editor/composer/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   RESOURCE_FILES += [ Link Here 
43
    'res/table-add-row-before.gif',
43
    'res/table-add-row-before.gif',
44
    'res/table-remove-column-active.gif',
44
    'res/table-remove-column-active.gif',
45
    'res/table-remove-column-hover.gif',
45
    'res/table-remove-column-hover.gif',
46
    'res/table-remove-column.gif',
46
    'res/table-remove-column.gif',
47
    'res/table-remove-row-active.gif',
47
    'res/table-remove-row-active.gif',
48
    'res/table-remove-row-hover.gif',
48
    'res/table-remove-row-hover.gif',
49
    'res/table-remove-row.gif',
49
    'res/table-remove-row.gif',
50
]
50
]
51
52
if CONFIG['GNU_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/editor/libeditor/moz.build (+3 lines)
Line     Link Here 
 Lines 68-75   LOCAL_INCLUDES += [ Link Here 
68
    '/layout/style',
68
    '/layout/style',
69
    '/layout/tables',
69
    '/layout/tables',
70
    '/layout/xul',
70
    '/layout/xul',
71
]
71
]
72
72
73
include('/ipc/chromium/chromium-config.mozbuild')
73
include('/ipc/chromium/chromium-config.mozbuild')
74
74
75
FINAL_LIBRARY = 'xul'
75
FINAL_LIBRARY = 'xul'
76
77
if CONFIG['GNU_CXX']:
78
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/embedding/browser/moz.build (+3 lines)
Line     Link Here 
 Lines 47-54   UNIFIED_SOURCES += [ Link Here 
47
]
47
]
48
48
49
FINAL_LIBRARY = 'xul'
49
FINAL_LIBRARY = 'xul'
50
LOCAL_INCLUDES += [
50
LOCAL_INCLUDES += [
51
    '/dom/base',
51
    '/dom/base',
52
    '/dom/svg',
52
    '/dom/svg',
53
    '/layout/style',
53
    '/layout/style',
54
]
54
]
55
56
if CONFIG['GNU_CXX']:
57
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/embedding/components/webbrowserpersist/moz.build (+3 lines)
Line     Link Here 
 Lines 39-46   EXPORTS.mozilla += [ Link Here 
39
39
40
include('/ipc/chromium/chromium-config.mozbuild')
40
include('/ipc/chromium/chromium-config.mozbuild')
41
41
42
FINAL_LIBRARY = 'xul'
42
FINAL_LIBRARY = 'xul'
43
LOCAL_INCLUDES += [
43
LOCAL_INCLUDES += [
44
    '/dom/base',
44
    '/dom/base',
45
    '/dom/html',
45
    '/dom/html',
46
]
46
]
47
48
if CONFIG['GNU_CXX']:
49
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/embedding/components/windowwatcher/moz.build (+3 lines)
Line     Link Here 
 Lines 35-42   if CONFIG['MOZ_XUL']: Link Here 
35
    ]
35
    ]
36
36
37
FINAL_LIBRARY = 'xul'
37
FINAL_LIBRARY = 'xul'
38
# For nsJSUtils
38
# For nsJSUtils
39
LOCAL_INCLUDES += [
39
LOCAL_INCLUDES += [
40
    '/docshell/base',
40
    '/docshell/base',
41
    '/dom/base',
41
    '/dom/base',
42
]
42
]
43
44
if CONFIG['GNU_CXX']:
45
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/extensions/cookie/moz.build (+3 lines)
Line     Link Here 
 Lines 20-27   UNIFIED_SOURCES += [ Link Here 
20
    'nsPermission.cpp',
20
    'nsPermission.cpp',
21
    'nsPermissionManager.cpp',
21
    'nsPermissionManager.cpp',
22
    'nsPopupWindowManager.cpp',
22
    'nsPopupWindowManager.cpp',
23
]
23
]
24
24
25
include('/ipc/chromium/chromium-config.mozbuild')
25
include('/ipc/chromium/chromium-config.mozbuild')
26
26
27
FINAL_LIBRARY = 'xul'
27
FINAL_LIBRARY = 'xul'
28
29
if CONFIG['GNU_CXX']:
30
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/extensions/spellcheck/src/moz.build (+3 lines)
Line     Link Here 
 Lines 21-28   LOCAL_INCLUDES += [ Link Here 
21
    '../hunspell/glue',
21
    '../hunspell/glue',
22
    '../hunspell/src',
22
    '../hunspell/src',
23
    '/dom/base',
23
    '/dom/base',
24
    '/editor/libeditor',
24
    '/editor/libeditor',
25
]
25
]
26
EXPORTS.mozilla += [
26
EXPORTS.mozilla += [
27
     'mozSpellChecker.h',
27
     'mozSpellChecker.h',
28
]
28
]
29
30
if CONFIG['GNU_CXX']:
31
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/gfx/2d/moz.build (+3 lines)
Line     Link Here 
 Lines 169-184   UNIFIED_SOURCES += [ Link Here 
169
169
170
SOURCES += [
170
SOURCES += [
171
    'Factory.cpp', # Need to suppress warnings in Skia header files.
171
    'Factory.cpp', # Need to suppress warnings in Skia header files.
172
]
172
]
173
173
174
if CONFIG['CLANG_CXX']:
174
if CONFIG['CLANG_CXX']:
175
    SOURCES['Factory.cpp'].flags += ['-Wno-implicit-fallthrough']
175
    SOURCES['Factory.cpp'].flags += ['-Wno-implicit-fallthrough']
176
176
177
if CONFIG['GNU_CXX']:
178
    CXXFLAGS += ['-Wno-error=shadow']
179
177
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
180
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
178
    EXPORTS.mozilla.gfx += [
181
    EXPORTS.mozilla.gfx += [
179
        'QuartzSupport.h',
182
        'QuartzSupport.h',
180
    ]
183
    ]
181
    SOURCES += [
184
    SOURCES += [
182
        'MacIOSurface.cpp',
185
        'MacIOSurface.cpp',
183
        'QuartzSupport.mm',
186
        'QuartzSupport.mm',
184
    ]
187
    ]
(-)a/gfx/gl/moz.build (+2 lines)
Line     Link Here 
 Lines 170-177   CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] Link Here 
170
CXXFLAGS += CONFIG['TK_CFLAGS']
170
CXXFLAGS += CONFIG['TK_CFLAGS']
171
CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
171
CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
172
CFLAGS += CONFIG['TK_CFLAGS']
172
CFLAGS += CONFIG['TK_CFLAGS']
173
173
174
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
174
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
175
175
176
if CONFIG['CLANG_CXX']:
176
if CONFIG['CLANG_CXX']:
177
    CXXFLAGS += ['-Wshadow']
177
    CXXFLAGS += ['-Wshadow']
178
elif CONFIG['GNU_CXX']:
179
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/gfx/layers/apz/test/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 22-29   LOCAL_INCLUDES += [ Link Here 
22
    '/gfx/2d',
22
    '/gfx/2d',
23
    '/gfx/layers',
23
    '/gfx/layers',
24
    '/gfx/tests/gtest'  # for TestLayers.h, which is shared with the gfx gtests
24
    '/gfx/tests/gtest'  # for TestLayers.h, which is shared with the gfx gtests
25
]
25
]
26
26
27
FINAL_LIBRARY = 'xul-gtest'
27
FINAL_LIBRARY = 'xul-gtest'
28
28
29
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
29
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
30
31
if CONFIG['GNU_CXX']:
32
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/gfx/layers/moz.build (+3 lines)
Line     Link Here 
 Lines 455-462   if CONFIG['ENABLE_TESTS']: Link Here 
455
455
456
MOCHITEST_MANIFESTS += ['apz/test/mochitest/mochitest.ini']
456
MOCHITEST_MANIFESTS += ['apz/test/mochitest/mochitest.ini']
457
MOCHITEST_CHROME_MANIFESTS += ['apz/test/mochitest/chrome.ini']
457
MOCHITEST_CHROME_MANIFESTS += ['apz/test/mochitest/chrome.ini']
458
458
459
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
459
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
460
CXXFLAGS += CONFIG['TK_CFLAGS']
460
CXXFLAGS += CONFIG['TK_CFLAGS']
461
461
462
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
462
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
463
464
if CONFIG['GNU_CXX']:
465
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/gfx/skia/generate_mozbuild.py (+1 lines)
Line     Link Here 
 Lines 113-128   DEFINES['SKIA_IMPLEMENTATION'] = 1 Link Here 
113
if not CONFIG['MOZ_ENABLE_SKIA_GPU']:
113
if not CONFIG['MOZ_ENABLE_SKIA_GPU']:
114
    DEFINES['SK_SUPPORT_GPU'] = 0
114
    DEFINES['SK_SUPPORT_GPU'] = 0
115
115
116
# Suppress warnings in third-party code.
116
# Suppress warnings in third-party code.
117
if CONFIG['GNU_CXX'] or CONFIG['CLANG_CL']:
117
if CONFIG['GNU_CXX'] or CONFIG['CLANG_CL']:
118
    CXXFLAGS += [
118
    CXXFLAGS += [
119
        '-Wno-deprecated-declarations',
119
        '-Wno-deprecated-declarations',
120
        '-Wno-overloaded-virtual',
120
        '-Wno-overloaded-virtual',
121
        '-Wno-shadow',
121
        '-Wno-sign-compare',
122
        '-Wno-sign-compare',
122
        '-Wno-unused-function',
123
        '-Wno-unused-function',
123
    ]
124
    ]
124
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX'] and not CONFIG['CLANG_CL']:
125
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX'] and not CONFIG['CLANG_CL']:
125
    CXXFLAGS += [
126
    CXXFLAGS += [
126
        '-Wno-logical-op',
127
        '-Wno-logical-op',
127
        '-Wno-maybe-uninitialized',
128
        '-Wno-maybe-uninitialized',
128
    ]
129
    ]
(-)a/gfx/skia/moz.build (+1 lines)
Line     Link Here 
 Lines 649-664   DEFINES['SKIA_IMPLEMENTATION'] = 1 Link Here 
649
if not CONFIG['MOZ_ENABLE_SKIA_GPU']:
649
if not CONFIG['MOZ_ENABLE_SKIA_GPU']:
650
    DEFINES['SK_SUPPORT_GPU'] = 0
650
    DEFINES['SK_SUPPORT_GPU'] = 0
651
651
652
# Suppress warnings in third-party code.
652
# Suppress warnings in third-party code.
653
if CONFIG['GNU_CXX'] or CONFIG['CLANG_CL']:
653
if CONFIG['GNU_CXX'] or CONFIG['CLANG_CL']:
654
    CXXFLAGS += [
654
    CXXFLAGS += [
655
        '-Wno-deprecated-declarations',
655
        '-Wno-deprecated-declarations',
656
        '-Wno-overloaded-virtual',
656
        '-Wno-overloaded-virtual',
657
        '-Wno-shadow',
657
        '-Wno-sign-compare',
658
        '-Wno-sign-compare',
658
        '-Wno-unused-function',
659
        '-Wno-unused-function',
659
    ]
660
    ]
660
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX'] and not CONFIG['CLANG_CL']:
661
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX'] and not CONFIG['CLANG_CL']:
661
    CXXFLAGS += [
662
    CXXFLAGS += [
662
        '-Wno-logical-op',
663
        '-Wno-logical-op',
663
        '-Wno-maybe-uninitialized',
664
        '-Wno-maybe-uninitialized',
664
    ]
665
    ]
(-)a/gfx/tests/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 46-53   LOCAL_INCLUDES += [ Link Here 
46
    '/gfx/2d/unittest',
46
    '/gfx/2d/unittest',
47
    '/gfx/layers',
47
    '/gfx/layers',
48
    '/gfx/qcms',
48
    '/gfx/qcms',
49
]
49
]
50
50
51
FINAL_LIBRARY = 'xul-gtest'
51
FINAL_LIBRARY = 'xul-gtest'
52
52
53
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
53
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
54
55
if CONFIG['GNU_CXX']:
56
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/image/decoders/moz.build (+3 lines)
Line     Link Here 
 Lines 39-46   LOCAL_INCLUDES += [ Link Here 
39
    '/gfx/2d',
39
    '/gfx/2d',
40
    # Decoders need ImageLib headers.
40
    # Decoders need ImageLib headers.
41
    '/image',
41
    '/image',
42
]
42
]
43
43
44
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
44
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
45
45
46
FINAL_LIBRARY = 'xul'
46
FINAL_LIBRARY = 'xul'
47
48
if CONFIG['GNU_CXX']:
49
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/image/moz.build (+2 lines)
Line     Link Here 
 Lines 107-114   LOCAL_INCLUDES += [ Link Here 
107
    '/xpcom/threads',
107
    '/xpcom/threads',
108
]
108
]
109
109
110
# Because imgFrame.cpp includes "cairo.h"
110
# Because imgFrame.cpp includes "cairo.h"
111
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
111
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
112
112
113
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
113
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
114
114
115
if CONFIG['GNU_CXX']:
116
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/image/test/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 54-61   LOCAL_INCLUDES += [ Link Here 
54
    '/dom/base',
54
    '/dom/base',
55
    '/gfx/2d',
55
    '/gfx/2d',
56
    '/image',
56
    '/image',
57
]
57
]
58
58
59
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
59
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
60
60
61
FINAL_LIBRARY = 'xul-gtest'
61
FINAL_LIBRARY = 'xul-gtest'
62
63
if CONFIG['GNU_CXX']:
64
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/intl/hyphenation/glue/moz.build (+3 lines)
Line     Link Here 
 Lines 19-26   SOURCES += [ Link Here 
19
    'hnjstdio.cpp',
19
    'hnjstdio.cpp',
20
]
20
]
21
21
22
LOCAL_INCLUDES += [
22
LOCAL_INCLUDES += [
23
    '../hyphen',
23
    '../hyphen',
24
]
24
]
25
25
26
FINAL_LIBRARY = 'xul'
26
FINAL_LIBRARY = 'xul'
27
28
if CONFIG['GNU_CXX']:
29
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/intl/strres/moz.build (+3 lines)
Line     Link Here 
 Lines 14-21   XPIDL_SOURCES += [ Link Here 
14
XPIDL_MODULE = 'intl'
14
XPIDL_MODULE = 'intl'
15
15
16
UNIFIED_SOURCES += [
16
UNIFIED_SOURCES += [
17
    'nsStringBundle.cpp',
17
    'nsStringBundle.cpp',
18
    'nsStringBundleTextOverride.cpp',
18
    'nsStringBundleTextOverride.cpp',
19
]
19
]
20
20
21
FINAL_LIBRARY = 'xul'
21
FINAL_LIBRARY = 'xul'
22
23
if CONFIG['GNU_CXX']:
24
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/intl/uconv/moz.build (+3 lines)
Line     Link Here 
 Lines 161-168   LOCAL_INCLUDES += [ Link Here 
161
    'ucvja',
161
    'ucvja',
162
    'ucvko',
162
    'ucvko',
163
    'ucvlatin',
163
    'ucvlatin',
164
    'ucvtw',
164
    'ucvtw',
165
    'util',
165
    'util',
166
]
166
]
167
167
168
FINAL_LIBRARY = 'xul'
168
FINAL_LIBRARY = 'xul'
169
170
if CONFIG['GNU_CXX']:
171
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/intl/unicharutil/moz.build (+3 lines)
Line     Link Here 
 Lines 26-33   UNIFIED_SOURCES += [ Link Here 
26
    'nsCaseConversionImp2.cpp',
26
    'nsCaseConversionImp2.cpp',
27
    'nsCategoryImp.cpp',
27
    'nsCategoryImp.cpp',
28
    'nsEntityConverter.cpp',
28
    'nsEntityConverter.cpp',
29
    'nsSaveAsCharset.cpp',
29
    'nsSaveAsCharset.cpp',
30
    'nsUnicodeNormalizer.cpp',
30
    'nsUnicodeNormalizer.cpp',
31
]
31
]
32
32
33
FINAL_LIBRARY = 'xul'
33
FINAL_LIBRARY = 'xul'
34
35
if CONFIG['GNU_CXX']:
36
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/ipc/chromium/moz.build (+3 lines)
Line     Link Here 
 Lines 158-165   CXXFLAGS += CONFIG['TK_CFLAGS'] Link Here 
158
158
159
include('/ipc/chromium/chromium-config.mozbuild')
159
include('/ipc/chromium/chromium-config.mozbuild')
160
160
161
FINAL_LIBRARY = 'xul'
161
FINAL_LIBRARY = 'xul'
162
162
163
DIRS += [
163
DIRS += [
164
    'atomics',
164
    'atomics',
165
]
165
]
166
167
if CONFIG['GNU_CXX']:
168
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/ipc/glue/moz.build (+3 lines)
Line     Link Here 
 Lines 182-189   LOCAL_INCLUDES += [ Link Here 
182
]
182
]
183
183
184
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
184
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
185
    LOCAL_INCLUDES += [
185
    LOCAL_INCLUDES += [
186
        '/security/sandbox/chromium',
186
        '/security/sandbox/chromium',
187
        '/security/sandbox/chromium-shim',
187
        '/security/sandbox/chromium-shim',
188
        '/security/sandbox/win/src/sandboxbroker',
188
        '/security/sandbox/win/src/sandboxbroker',
189
    ]
189
    ]
190
191
if CONFIG['GNU_CXX']:
192
    CXXFLAGS += ['-Wno-shadow']
(-)a/ipc/testshell/moz.build (+2 lines)
Line     Link Here 
 Lines 28-35   include('/ipc/chromium/chromium-config.m Link Here 
28
FINAL_LIBRARY = 'xul'
28
FINAL_LIBRARY = 'xul'
29
29
30
# For xpcshell error messages and nsAutoJSString
30
# For xpcshell error messages and nsAutoJSString
31
LOCAL_INCLUDES += [
31
LOCAL_INCLUDES += [
32
    '/dom/base',
32
    '/dom/base',
33
    '/js/xpconnect/src',
33
    '/js/xpconnect/src',
34
]
34
]
35
35
36
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
37
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/js/ipc/moz.build (+2 lines)
Line     Link Here 
 Lines 32-39   EXPORTS.mozilla.jsipc = [ Link Here 
32
LOCAL_INCLUDES += [
32
LOCAL_INCLUDES += [
33
    '/dom/base',
33
    '/dom/base',
34
    '/js/ipc',
34
    '/js/ipc',
35
    '/js/src',
35
    '/js/src',
36
    '/js/xpconnect/src',
36
    '/js/xpconnect/src',
37
    '/js/xpconnect/wrappers',
37
    '/js/xpconnect/wrappers',
38
]
38
]
39
39
40
if CONFIG['GNU_CXX']:
41
    CXXFLAGS += ['-Wno-shadow']
(-)a/js/src/gdb/moz.build (+3 lines)
Line     Link Here 
 Lines 36-50   USE_LIBS += [ Link Here 
36
36
37
if CONFIG['ENABLE_INTL_API'] and CONFIG['MOZ_ICU_DATA_ARCHIVE']:
37
if CONFIG['ENABLE_INTL_API'] and CONFIG['MOZ_ICU_DATA_ARCHIVE']:
38
    # The ICU libraries linked into libmozjs will not include the ICU data,
38
    # The ICU libraries linked into libmozjs will not include the ICU data,
39
    # so link it directly.
39
    # so link it directly.
40
    USE_LIBS += ['icudata']
40
    USE_LIBS += ['icudata']
41
41
42
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
42
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
43
43
44
if CONFIG['GNU_CXX']:
45
    CXXFLAGS += ['-Wno-shadow']
46
44
# This is intended as a temporary workaround to enable VS2015.
47
# This is intended as a temporary workaround to enable VS2015.
45
if CONFIG['_MSC_VER']:
48
if CONFIG['_MSC_VER']:
46
    CXXFLAGS += ['-wd4312']
49
    CXXFLAGS += ['-wd4312']
47
50
48
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
51
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
49
FINAL_TARGET_PP_FILES += ['gdb-tests-gdb.py.in']
52
FINAL_TARGET_PP_FILES += ['gdb-tests-gdb.py.in']
50
OBJDIR_FILES.js.src.gdb += ['!/dist/bin/gdb-tests-gdb.py']
53
OBJDIR_FILES.js.src.gdb += ['!/dist/bin/gdb-tests-gdb.py']
(-)a/js/src/jsapi-tests/moz.build (+3 lines)
Line     Link Here 
 Lines 137-150   if CONFIG['ENABLE_INTL_API'] and CONFIG[ Link Here 
137
    USE_LIBS += ['icudata']
137
    USE_LIBS += ['icudata']
138
138
139
USE_LIBS += [
139
USE_LIBS += [
140
    'static:js',
140
    'static:js',
141
]
141
]
142
142
143
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
143
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
144
144
145
if CONFIG['GNU_CXX']:
146
    CXXFLAGS += ['-Wno-shadow']
147
145
# This is intended as a temporary workaround to enable VS2015.
148
# This is intended as a temporary workaround to enable VS2015.
146
if CONFIG['_MSC_VER']:
149
if CONFIG['_MSC_VER']:
147
    CXXFLAGS += ['-wd4312']
150
    CXXFLAGS += ['-wd4312']
148
151
149
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
152
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
150
OBJDIR_PP_FILES.js.src['jsapi-tests'] += ['jsapi-tests-gdb.py.in']
153
OBJDIR_PP_FILES.js.src['jsapi-tests'] += ['jsapi-tests-gdb.py.in']
(-)a/js/src/moz.build (+3 lines)
Line     Link Here 
 Lines 760-770   if CONFIG['SPIDERMONKEY_PROMISE']: Link Here 
760
760
761
if CONFIG['JS_HAS_CTYPES']:
761
if CONFIG['JS_HAS_CTYPES']:
762
    if CONFIG['MOZ_SYSTEM_FFI']:
762
    if CONFIG['MOZ_SYSTEM_FFI']:
763
        CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']
763
        CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']
764
    else:
764
    else:
765
        # Windows needs this to be linked with a static library.
765
        # Windows needs this to be linked with a static library.
766
        DEFINES['FFI_BUILDING'] = True
766
        DEFINES['FFI_BUILDING'] = True
767
767
768
if CONFIG['GNU_CXX']:
769
    CXXFLAGS += ['-Wno-shadow']
770
768
# Suppress warnings in third-party code.
771
# Suppress warnings in third-party code.
769
if CONFIG['CLANG_CXX']:
772
if CONFIG['CLANG_CXX']:
770
    SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough']
773
    SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough']
(-)a/js/src/shell/moz.build (+3 lines)
Line     Link Here 
 Lines 45-60   if CONFIG['ENABLE_INTL_API'] and CONFIG[ Link Here 
45
GENERATED_FILES += ['shellmoduleloader.out.h']
45
GENERATED_FILES += ['shellmoduleloader.out.h']
46
shellmoduleloader = GENERATED_FILES['shellmoduleloader.out.h']
46
shellmoduleloader = GENERATED_FILES['shellmoduleloader.out.h']
47
shellmoduleloader.script = '../builtin/embedjs.py:generate_shellmoduleloader'
47
shellmoduleloader.script = '../builtin/embedjs.py:generate_shellmoduleloader'
48
shellmoduleloader.inputs = [
48
shellmoduleloader.inputs = [
49
    '../js.msg',
49
    '../js.msg',
50
    'ModuleLoader.js',
50
    'ModuleLoader.js',
51
]
51
]
52
52
53
if CONFIG['GNU_CXX']:
54
    CXXFLAGS += ['-Wno-shadow']
55
53
# This is intended as a temporary workaround to enable VS2015.
56
# This is intended as a temporary workaround to enable VS2015.
54
if CONFIG['_MSC_VER']:
57
if CONFIG['_MSC_VER']:
55
    CXXFLAGS += ['-wd4312']
58
    CXXFLAGS += ['-wd4312']
56
59
57
# Place a GDB Python auto-load file next to the shell executable, both in
60
# Place a GDB Python auto-load file next to the shell executable, both in
58
# the build directory and in the dist/bin directory.
61
# the build directory and in the dist/bin directory.
59
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
62
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
60
FINAL_TARGET_PP_FILES += ['js-gdb.py.in']
63
FINAL_TARGET_PP_FILES += ['js-gdb.py.in']
(-)a/js/xpconnect/loader/moz.build (+2 lines)
Line     Link Here 
 Lines 19-26   EXTRA_JS_MODULES += [ Link Here 
19
FINAL_LIBRARY = 'xul'
19
FINAL_LIBRARY = 'xul'
20
20
21
LOCAL_INCLUDES += [
21
LOCAL_INCLUDES += [
22
    '../src',
22
    '../src',
23
    '../wrappers',
23
    '../wrappers',
24
    '/dom/base',
24
    '/dom/base',
25
]
25
]
26
26
27
if CONFIG['GNU_CXX']:
28
    CXXFLAGS += ['-Wno-shadow']
(-)a/js/xpconnect/src/moz.build (+3 lines)
Line     Link Here 
 Lines 67-74   LOCAL_INCLUDES += [ Link Here 
67
    '/layout/style',
67
    '/layout/style',
68
    '/xpcom/reflect/xptinfo',
68
    '/xpcom/reflect/xptinfo',
69
]
69
]
70
70
71
if CONFIG['MOZ_B2G_BT']:
71
if CONFIG['MOZ_B2G_BT']:
72
    LOCAL_INCLUDES += [
72
    LOCAL_INCLUDES += [
73
        '/dom/bluetooth/common',
73
        '/dom/bluetooth/common',
74
    ]
74
    ]
75
76
if CONFIG['GNU_CXX']:
77
    CXXFLAGS += ['-Wno-shadow']
(-)a/js/xpconnect/wrappers/moz.build (+2 lines)
Line     Link Here 
 Lines 32-39   include('/ipc/chromium/chromium-config.m Link Here 
32
32
33
FINAL_LIBRARY = 'xul'
33
FINAL_LIBRARY = 'xul'
34
34
35
LOCAL_INCLUDES += [
35
LOCAL_INCLUDES += [
36
    '../../../dom/base',
36
    '../../../dom/base',
37
    '../src',
37
    '../src',
38
]
38
]
39
39
40
if CONFIG['GNU_CXX']:
41
    CXXFLAGS += ['-Wno-shadow']
(-)a/layout/base/moz.build (+3 lines)
Line     Link Here 
 Lines 204-211   MOCHITEST_MANIFESTS += ['tests/mochitest Link Here 
204
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
204
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
205
205
206
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
206
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
207
207
208
if CONFIG['_MSC_VER']:
208
if CONFIG['_MSC_VER']:
209
    # This is intended as a temporary hack to support building with VS2015.
209
    # This is intended as a temporary hack to support building with VS2015.
210
    # 'type cast': conversion from 'unsigned int' to 'void *' of greater size
210
    # 'type cast': conversion from 'unsigned int' to 'void *' of greater size
211
    CXXFLAGS += ['-wd4312']
211
    CXXFLAGS += ['-wd4312']
212
213
if CONFIG['GNU_CXX']:
214
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/build/moz.build (+3 lines)
Line     Link Here 
 Lines 121-128   if CONFIG['MOZ_WEBSPEECH_POCKETSPHINX']: Link Here 
121
    ]
121
    ]
122
122
123
if CONFIG['MOZ_SECUREELEMENT']:
123
if CONFIG['MOZ_SECUREELEMENT']:
124
    LOCAL_INCLUDES += [
124
    LOCAL_INCLUDES += [
125
        '/dom/secureelement',
125
        '/dom/secureelement',
126
    ]
126
    ]
127
127
128
FINAL_LIBRARY = 'xul'
128
FINAL_LIBRARY = 'xul'
129
130
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
131
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/forms/moz.build (+3 lines)
Line     Link Here 
 Lines 54-66   LOCAL_INCLUDES += [ Link Here 
54
]
54
]
55
55
56
if CONFIG['ENABLE_INTL_API']:
56
if CONFIG['ENABLE_INTL_API']:
57
    # nsNumberControlFrame.cpp requires ICUUtils.h which in turn requires
57
    # nsNumberControlFrame.cpp requires ICUUtils.h which in turn requires
58
    # i18n/unum.h
58
    # i18n/unum.h
59
    CXXFLAGS += CONFIG['MOZ_ICU_CFLAGS']
59
    CXXFLAGS += CONFIG['MOZ_ICU_CFLAGS']
60
    LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
60
    LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
61
61
62
if CONFIG['GNU_CXX']:
63
    CXXFLAGS += ['-Wno-error=shadow']
64
62
if CONFIG['_MSC_VER']:
65
if CONFIG['_MSC_VER']:
63
    # This is intended as a temporary hack to support building with VS2015.
66
    # This is intended as a temporary hack to support building with VS2015.
64
    # 'noexcept' used with no exception handling mode specified;
67
    # 'noexcept' used with no exception handling mode specified;
65
    # termination on exception is not guaranteed. Specify /EHsc
68
    # termination on exception is not guaranteed. Specify /EHsc
66
    CXXFLAGS += ['-wd4577']
69
    CXXFLAGS += ['-wd4577']
(-)a/layout/generic/moz.build (+3 lines)
Line     Link Here 
 Lines 210-217   MOCHITEST_CHROME_MANIFESTS += ['test/chr Link Here 
210
210
211
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
211
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
212
212
213
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
213
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
214
    CXXFLAGS += CONFIG['TK_CFLAGS']
214
    CXXFLAGS += CONFIG['TK_CFLAGS']
215
215
216
if CONFIG['MOZ_ENABLE_QT']:
216
if CONFIG['MOZ_ENABLE_QT']:
217
    CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
217
    CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
218
219
if CONFIG['GNU_CXX']:
220
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/mathml/moz.build (+3 lines)
Line     Link Here 
 Lines 59-66   RESOURCE_FILES.fonts += [ Link Here 
59
    'mathfontSTIXGeneral.properties',
59
    'mathfontSTIXGeneral.properties',
60
    'mathfontUnicode.properties',
60
    'mathfontUnicode.properties',
61
]
61
]
62
62
63
if CONFIG['OS_TARGET'] == 'WINNT':
63
if CONFIG['OS_TARGET'] == 'WINNT':
64
    RESOURCE_FILES.fonts += [
64
    RESOURCE_FILES.fonts += [
65
        'mathfontSymbol.properties',
65
        'mathfontSymbol.properties',
66
    ]
66
    ]
67
68
if CONFIG['GNU_CXX']:
69
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/svg/moz.build (+2 lines)
Line     Link Here 
 Lines 65-72   LOCAL_INCLUDES += [ Link Here 
65
    '/dom/base',
65
    '/dom/base',
66
    '/dom/svg',
66
    '/dom/svg',
67
]
67
]
68
68
69
RESOURCE_FILES += [
69
RESOURCE_FILES += [
70
    'svg.css',
70
    'svg.css',
71
]
71
]
72
72
73
if CONFIG['GNU_CXX']:
74
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/tables/moz.build (+3 lines)
Line     Link Here 
 Lines 36-43   LOCAL_INCLUDES += [ Link Here 
36
    '../generic',
36
    '../generic',
37
    '../style',
37
    '../style',
38
    '../xul',
38
    '../xul',
39
    '/dom/base',
39
    '/dom/base',
40
    '/dom/html',
40
    '/dom/html',
41
]
41
]
42
42
43
DEFINES['DEBUG_TABLE_STRATEGY_off'] = True
43
DEFINES['DEBUG_TABLE_STRATEGY_off'] = True
44
45
if CONFIG['GNU_CXX']:
46
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/xul/grid/moz.build (+2 lines)
Line     Link Here 
 Lines 34-41   UNIFIED_SOURCES += [ Link Here 
34
FINAL_LIBRARY = 'xul'
34
FINAL_LIBRARY = 'xul'
35
LOCAL_INCLUDES += [
35
LOCAL_INCLUDES += [
36
    '..',
36
    '..',
37
    '../../forms',
37
    '../../forms',
38
    '../../generic',
38
    '../../generic',
39
    '../../style',
39
    '../../style',
40
]
40
]
41
41
42
if CONFIG['GNU_CXX']:
43
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/xul/moz.build (+3 lines)
Line     Link Here 
 Lines 97-104   if CONFIG['MOZ_XUL']: Link Here 
97
97
98
FINAL_LIBRARY = 'xul'
98
FINAL_LIBRARY = 'xul'
99
LOCAL_INCLUDES += [
99
LOCAL_INCLUDES += [
100
    '../base',
100
    '../base',
101
    '../generic',
101
    '../generic',
102
    '../style',
102
    '../style',
103
    '/dom/base',
103
    '/dom/base',
104
]
104
]
105
106
if CONFIG['GNU_CXX']:
107
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/layout/xul/tree/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   FINAL_LIBRARY = 'xul' Link Here 
43
LOCAL_INCLUDES += [
43
LOCAL_INCLUDES += [
44
    '..',
44
    '..',
45
    '../../base',
45
    '../../base',
46
    '../../forms',
46
    '../../forms',
47
    '../../generic',
47
    '../../generic',
48
    '../../style',
48
    '../../style',
49
    '/dom/base',
49
    '/dom/base',
50
]
50
]
51
52
if CONFIG['GNU_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/media/libcubeb/tests/moz.build (+3 lines)
Line     Link Here 
 Lines 70-77   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'ui Link Here 
70
    ]
70
    ]
71
elif CONFIG['OS_TARGET'] == 'OpenBSD':
71
elif CONFIG['OS_TARGET'] == 'OpenBSD':
72
    OS_LIBS += [
72
    OS_LIBS += [
73
        'sndio',
73
        'sndio',
74
    ]
74
    ]
75
else:
75
else:
76
    OS_LIBS += CONFIG['MOZ_ALSA_LIBS']
76
    OS_LIBS += CONFIG['MOZ_ALSA_LIBS']
77
    OS_LIBS += CONFIG['MOZ_PULSEAUDIO_LIBS']
77
    OS_LIBS += CONFIG['MOZ_PULSEAUDIO_LIBS']
78
79
if CONFIG['GNU_CXX']:
80
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/media/libyuv/moz.build (+3 lines)
Line     Link Here 
 Lines 14-21   libyuv_non_unified_sources = [ Link Here 
14
    'source/row_common.cc',
14
    'source/row_common.cc',
15
    'source/scale.cc',
15
    'source/scale.cc',
16
    'source/scale_common.cc',
16
    'source/scale_common.cc',
17
]
17
]
18
GYP_DIRS['.'].input = 'libyuv.gyp'
18
GYP_DIRS['.'].input = 'libyuv.gyp'
19
GYP_DIRS['.'].variables = gyp_vars
19
GYP_DIRS['.'].variables = gyp_vars
20
GYP_DIRS['.'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
20
GYP_DIRS['.'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
21
GYP_DIRS['.'].non_unified_sources += libyuv_non_unified_sources
21
GYP_DIRS['.'].non_unified_sources += libyuv_non_unified_sources
22
23
# We allow warnings for third-party code that can be updated from upstream.
24
GYP_DIRS['.'].sandbox_vars['ALLOW_COMPILER_WARNINGS'] = True
(-)a/media/mtransport/common.build (+3 lines)
Line     Link Here 
 Lines 85-92   for var in ('HAVE_STRDUP', 'NR_SOCKET_IS Link Here 
85
    DEFINES[var] = True
85
    DEFINES[var] = True
86
86
87
DEFINES['R_DEFINED_INT2'] = 'int16_t'
87
DEFINES['R_DEFINED_INT2'] = 'int16_t'
88
DEFINES['R_DEFINED_UINT2'] = 'uint16_t'
88
DEFINES['R_DEFINED_UINT2'] = 'uint16_t'
89
DEFINES['R_DEFINED_INT4'] = 'int32_t'
89
DEFINES['R_DEFINED_INT4'] = 'int32_t'
90
DEFINES['R_DEFINED_UINT4'] = 'uint32_t'
90
DEFINES['R_DEFINED_UINT4'] = 'uint32_t'
91
DEFINES['R_DEFINED_INT8'] = 'int64_t'
91
DEFINES['R_DEFINED_INT8'] = 'int64_t'
92
DEFINES['R_DEFINED_UINT8'] = 'uint64_t'
92
DEFINES['R_DEFINED_UINT8'] = 'uint64_t'
93
94
if CONFIG['GNU_CXX']:
95
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/media/mtransport/test/moz.build (+3 lines)
Line     Link Here 
 Lines 90-97   LOCAL_INCLUDES += [ Link Here 
90
    '/media/mtransport/third_party/nrappkit/src/stats',
90
    '/media/mtransport/third_party/nrappkit/src/stats',
91
    '/media/mtransport/third_party/nrappkit/src/util/',
91
    '/media/mtransport/third_party/nrappkit/src/util/',
92
    '/media/mtransport/third_party/nrappkit/src/util/libekr',
92
    '/media/mtransport/third_party/nrappkit/src/util/libekr',
93
    '/netwerk/sctp/src/',
93
    '/netwerk/sctp/src/',
94
    '/xpcom/tests/'
94
    '/xpcom/tests/'
95
]
95
]
96
96
97
FINAL_LIBRARY = 'xul-gtest'
97
FINAL_LIBRARY = 'xul-gtest'
98
99
if CONFIG['GNU_CXX']:
100
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/media/omx-plugin/kk/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 21-29   USE_LIBS += [ Link Here 
21
    'videoeditorplayer',
21
    'videoeditorplayer',
22
]
22
]
23
23
24
# Don't use STL wrappers; this isn't Gecko code
24
# Don't use STL wrappers; this isn't Gecko code
25
DISABLE_STL_WRAPPING = True
25
DISABLE_STL_WRAPPING = True
26
NO_VISIBILITY_FLAGS = True
26
NO_VISIBILITY_FLAGS = True
27
27
28
# Suppress warnings in third-party code.
28
# Suppress warnings in third-party code.
29
CXXFLAGS += ['-Wno-multichar']
29
CXXFLAGS += [
30
    '-Wno-multichar',
31
    '-Wno-shadow',
32
]
(-)a/media/omx-plugin/lib/ics/libstagefright/moz.build (+3 lines)
Line     Link Here 
 Lines 23-30   LOCAL_INCLUDES += [ Link Here 
23
23
24
USE_LIBS += [
24
USE_LIBS += [
25
    '/media/omx-plugin/lib/ics/libutils/utils',
25
    '/media/omx-plugin/lib/ics/libutils/utils',
26
]
26
]
27
27
28
# Don't use STL wrappers; this isn't Gecko code
28
# Don't use STL wrappers; this isn't Gecko code
29
DISABLE_STL_WRAPPING = True
29
DISABLE_STL_WRAPPING = True
30
NO_VISIBILITY_FLAGS = True
30
NO_VISIBILITY_FLAGS = True
31
32
if CONFIG['GNU_CXX']:
33
    CXXFLAGS += ['-Wno-shadow']
(-)a/media/omx-plugin/lib/ics/libutils/moz.build (+3 lines)
Line     Link Here 
 Lines 15-22   SharedLibrary('utils') Link Here 
15
LOCAL_INCLUDES += [
15
LOCAL_INCLUDES += [
16
    '/media/omx-plugin/include/ics',
16
    '/media/omx-plugin/include/ics',
17
    '/media/omx-plugin/include/ics/media/stagefright/openmax',
17
    '/media/omx-plugin/include/ics/media/stagefright/openmax',
18
]
18
]
19
19
20
# Don't use STL wrappers; this isn't Gecko code
20
# Don't use STL wrappers; this isn't Gecko code
21
DISABLE_STL_WRAPPING = True
21
DISABLE_STL_WRAPPING = True
22
NO_VISIBILITY_FLAGS = True
22
NO_VISIBILITY_FLAGS = True
23
24
if CONFIG['GNU_CXX']:
25
    CXXFLAGS += ['-Wno-shadow']
(-)a/media/omx-plugin/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 25-41   if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk Link Here 
25
else:
25
else:
26
    LOCAL_INCLUDES += [
26
    LOCAL_INCLUDES += [
27
        'include/ics',
27
        'include/ics',
28
        'include/ics/media/stagefright/openmax',
28
        'include/ics/media/stagefright/openmax',
29
    ]
29
    ]
30
30
31
if CONFIG['GNU_CXX']:
31
if CONFIG['GNU_CXX']:
32
    # Stagefright header files define many multichar constants.
32
    # Stagefright header files define many multichar constants.
33
    CXXFLAGS += ['-Wno-multichar']
33
    CXXFLAGS += [
34
        '-Wno-multichar',
35
        '-Wno-shadow',
36
    ]
34
37
35
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
38
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
36
    if CONFIG['ANDROID_VERSION'] == '15':
39
    if CONFIG['ANDROID_VERSION'] == '15':
37
        LOCAL_INCLUDES += [
40
        LOCAL_INCLUDES += [
38
             '%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
41
             '%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
39
                 'dalvik/libnativehelper/include/nativehelper',
42
                 'dalvik/libnativehelper/include/nativehelper',
40
                 'frameworks/base/include/',
43
                 'frameworks/base/include/',
41
                 'frameworks/base/include/binder/',
44
                 'frameworks/base/include/binder/',
(-)a/media/webrtc/signaling/test/moz.build (-1 / +3 lines)
Line     Link Here 
 Lines 19-32   if CONFIG['OS_TARGET'] != 'WINNT' and CO Link Here 
19
include('/ipc/chromium/chromium-config.mozbuild')
19
include('/ipc/chromium/chromium-config.mozbuild')
20
include('common.build')
20
include('common.build')
21
21
22
USE_LIBS += [
22
USE_LIBS += [
23
    '/media/webrtc/signalingtest/signaling_ecc/ecc',
23
    '/media/webrtc/signalingtest/signaling_ecc/ecc',
24
    'mtransport_s',
24
    'mtransport_s',
25
]
25
]
26
26
27
if CONFIG['GNU_CXX']:
28
    CXXFLAGS += ['-Wno-error=shadow']
29
27
if CONFIG['_MSC_VER']:
30
if CONFIG['_MSC_VER']:
28
    # This is intended as a temporary workaround to enable warning free building
31
    # This is intended as a temporary workaround to enable warning free building
29
    # with VS2015.
32
    # with VS2015.
30
    # reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size
33
    # reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size
31
    CXXFLAGS += ['-wd4312']
34
    CXXFLAGS += ['-wd4312']
32
(-)a/memory/replace/dmd/test/moz.build (+2 lines)
Line     Link Here 
 Lines 17-24   else: Link Here 
17
DEFINES['MOZ_NO_MOZALLOC'] = True
17
DEFINES['MOZ_NO_MOZALLOC'] = True
18
18
19
DISABLE_STL_WRAPPING = True
19
DISABLE_STL_WRAPPING = True
20
20
21
XPCSHELL_TESTS_MANIFESTS += [
21
XPCSHELL_TESTS_MANIFESTS += [
22
    'xpcshell.ini',
22
    'xpcshell.ini',
23
]
23
]
24
24
25
if CONFIG['GNU_CXX']:
26
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/mfbt/moz.build (+1 lines)
Line     Link Here 
 Lines 118-133   SOURCES += mfbt_nonunified_src_cppsrcs Link Here 
118
118
119
DISABLE_STL_WRAPPING = True
119
DISABLE_STL_WRAPPING = True
120
120
121
# Suppress warnings in third-party LZ4 code.
121
# Suppress warnings in third-party LZ4 code.
122
# TODO: Remove these suppressions after bug 993267 is fixed.
122
# TODO: Remove these suppressions after bug 993267 is fixed.
123
123
124
if CONFIG['GNU_CXX']:
124
if CONFIG['GNU_CXX']:
125
    SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
125
    SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
126
    CXXFLAGS += ['-Wno-error=shadow']
126
127
127
if CONFIG['CLANG_CXX']:
128
if CONFIG['CLANG_CXX']:
128
    # Suppress warnings from third-party V8 Decimal code.
129
    # Suppress warnings from third-party V8 Decimal code.
129
    SOURCES['/mfbt/decimal/Decimal.cpp'].flags += ['-Wno-implicit-fallthrough']
130
    SOURCES['/mfbt/decimal/Decimal.cpp'].flags += ['-Wno-implicit-fallthrough']
130
131
131
if CONFIG['_MSC_VER']:
132
if CONFIG['_MSC_VER']:
132
    # Error 4804 is "'>' : unsafe use of type 'bool' in operation"
133
    # Error 4804 is "'>' : unsafe use of type 'bool' in operation"
133
    SOURCES['/mfbt/Compression.cpp'].flags += ['-wd4804']
134
    SOURCES['/mfbt/Compression.cpp'].flags += ['-wd4804']
(-)a/mfbt/tests/moz.build (+3 lines)
Line     Link Here 
 Lines 61-68   if CONFIG['_MSC_VER']: Link Here 
61
  CXXFLAGS += [
61
  CXXFLAGS += [
62
    '-wd4275', # non dll-interface class used as base for dll-interface class
62
    '-wd4275', # non dll-interface class used as base for dll-interface class
63
    '-wd4530', # C++ exception handler used, but unwind semantics are not enabled
63
    '-wd4530', # C++ exception handler used, but unwind semantics are not enabled
64
  ]
64
  ]
65
65
66
USE_LIBS += [
66
USE_LIBS += [
67
    'mfbt',
67
    'mfbt',
68
]
68
]
69
70
if CONFIG['GNU_CXX']:
71
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/mozglue/android/moz.build (+3 lines)
Line     Link Here 
 Lines 47-54   LOCAL_INCLUDES += [ Link Here 
47
    '/security/nss/lib/softoken',
47
    '/security/nss/lib/softoken',
48
    '/security/nss/lib/ssl',
48
    '/security/nss/lib/ssl',
49
    '/security/nss/lib/util',
49
    '/security/nss/lib/util',
50
    '/toolkit/components/startup',
50
    '/toolkit/components/startup',
51
    '/xpcom/build',
51
    '/xpcom/build',
52
]
52
]
53
53
54
DISABLE_STL_WRAPPING = True
54
DISABLE_STL_WRAPPING = True
55
56
if CONFIG['GNU_CXX']:
57
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/mozglue/linker/moz.build (+3 lines)
Line     Link Here 
 Lines 37-44   HOST_OS_LIBS += [ Link Here 
37
if CONFIG['TARGET_CPU'] == 'arm':
37
if CONFIG['TARGET_CPU'] == 'arm':
38
    if CONFIG['MOZ_THUMB2']:
38
    if CONFIG['MOZ_THUMB2']:
39
        HOST_DEFINES['TARGET_THUMB'] = True
39
        HOST_DEFINES['TARGET_THUMB'] = True
40
    else:
40
    else:
41
        HOST_DEFINES['TARGET_ARM'] = True
41
        HOST_DEFINES['TARGET_ARM'] = True
42
42
43
if CONFIG['CPU_ARCH'] == 'x86':
43
if CONFIG['CPU_ARCH'] == 'x86':
44
    HOST_DEFINES['TARGET_X86'] = True
44
    HOST_DEFINES['TARGET_X86'] = True
45
46
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
47
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/mozglue/linker/tests/moz.build (+3 lines)
Line     Link Here 
 Lines 12-19   SimplePrograms([ Link Here 
12
LOCAL_INCLUDES += ['..']
12
LOCAL_INCLUDES += ['..']
13
USE_LIBS += [
13
USE_LIBS += [
14
    'linker',
14
    'linker',
15
]
15
]
16
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
16
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
17
DISABLE_STL_WRAPPING = True
17
DISABLE_STL_WRAPPING = True
18
18
19
PYTHON_UNIT_TESTS += ['run_test_zip.py']
19
PYTHON_UNIT_TESTS += ['run_test_zip.py']
20
21
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
22
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/base/moz.build (+3 lines)
Line     Link Here 
 Lines 309-316   if 'rtsp' in CONFIG['NECKO_PROTOCOLS']: Link Here 
309
309
310
if CONFIG['MOZ_ENABLE_QTNETWORK']:
310
if CONFIG['MOZ_ENABLE_QTNETWORK']:
311
    LOCAL_INCLUDES += [
311
    LOCAL_INCLUDES += [
312
        '/netwerk/system/qt',
312
        '/netwerk/system/qt',
313
    ]
313
    ]
314
314
315
if CONFIG['MOZ_ENABLE_QTNETWORK']:
315
if CONFIG['MOZ_ENABLE_QTNETWORK']:
316
    CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
316
    CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
317
318
if CONFIG['GNU_CXX']:
319
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/cache/moz.build (+3 lines)
Line     Link Here 
 Lines 41-48   UNIFIED_SOURCES += [ Link Here 
41
    'nsMemoryCacheDevice.cpp',
41
    'nsMemoryCacheDevice.cpp',
42
]
42
]
43
43
44
FINAL_LIBRARY = 'xul'
44
FINAL_LIBRARY = 'xul'
45
45
46
LOCAL_INCLUDES += [
46
LOCAL_INCLUDES += [
47
    '/netwerk/base',
47
    '/netwerk/base',
48
]
48
]
49
50
if CONFIG['GNU_CXX']:
51
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/cache2/moz.build (+3 lines)
Line     Link Here 
 Lines 49-56   SOURCES += [ Link Here 
49
]
49
]
50
50
51
LOCAL_INCLUDES += [
51
LOCAL_INCLUDES += [
52
    '/netwerk/base',
52
    '/netwerk/base',
53
    '/netwerk/cache',
53
    '/netwerk/cache',
54
]
54
]
55
55
56
FINAL_LIBRARY = 'xul'
56
FINAL_LIBRARY = 'xul'
57
58
if CONFIG['GNU_CXX']:
59
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/cookie/moz.build (+3 lines)
Line     Link Here 
 Lines 41-48   if CONFIG['NECKO_COOKIES']: Link Here 
41
41
42
IPDL_SOURCES = [
42
IPDL_SOURCES = [
43
    'PCookieService.ipdl',
43
    'PCookieService.ipdl',
44
]
44
]
45
45
46
include('/ipc/chromium/chromium-config.mozbuild')
46
include('/ipc/chromium/chromium-config.mozbuild')
47
47
48
FINAL_LIBRARY = 'xul'
48
FINAL_LIBRARY = 'xul'
49
50
if CONFIG['GNU_CXX']:
51
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/dns/mdns/libmdns/moz.build (+3 lines)
Line     Link Here 
 Lines 36-43   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co Link Here 
36
36
37
UNIFIED_SOURCES += [
37
UNIFIED_SOURCES += [
38
    'nsDNSServiceInfo.cpp',
38
    'nsDNSServiceInfo.cpp',
39
    'nsMulticastDNSModule.cpp',
39
    'nsMulticastDNSModule.cpp',
40
]
40
]
41
41
42
include('/ipc/chromium/chromium-config.mozbuild')
42
include('/ipc/chromium/chromium-config.mozbuild')
43
FINAL_LIBRARY = 'xul'
43
FINAL_LIBRARY = 'xul'
44
45
if CONFIG['GNU_CXX']:
46
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/dns/moz.build (+3 lines)
Line     Link Here 
 Lines 75-88   if CONFIG['ENABLE_INTL_API']: Link Here 
75
    CFLAGS += CONFIG['MOZ_ICU_CFLAGS']
75
    CFLAGS += CONFIG['MOZ_ICU_CFLAGS']
76
    LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
76
    LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
77
    USE_LIBS += ['icu']
77
    USE_LIBS += ['icu']
78
else:
78
else:
79
    UNIFIED_SOURCES += [
79
    UNIFIED_SOURCES += [
80
        'nameprep.c',
80
        'nameprep.c',
81
    ]
81
    ]
82
82
83
if CONFIG['GNU_CXX']:
84
    CXXFLAGS += ['-Wno-error=shadow']
85
83
if CONFIG['_MSC_VER']:
86
if CONFIG['_MSC_VER']:
84
    # This is intended as a temporary hack to support building with VS2015.
87
    # This is intended as a temporary hack to support building with VS2015.
85
    # icu\source\common\unicode/ucasemap.h(93): warning C4577:
88
    # icu\source\common\unicode/ucasemap.h(93): warning C4577:
86
    # 'noexcept' used with no exception handling mode specified;
89
    # 'noexcept' used with no exception handling mode specified;
87
    # termination on exception is not guaranteed. Specify /EHsc from unified dns
90
    # termination on exception is not guaranteed. Specify /EHsc from unified dns
88
    CXXFLAGS += ['-wd4577']
91
    CXXFLAGS += ['-wd4577']
(-)a/netwerk/mime/moz.build (+3 lines)
Line     Link Here 
 Lines 16-23   EXPORTS += [ Link Here 
16
    'nsMimeTypes.h',
16
    'nsMimeTypes.h',
17
]
17
]
18
18
19
SOURCES += [
19
SOURCES += [
20
    'nsMIMEHeaderParamImpl.cpp',
20
    'nsMIMEHeaderParamImpl.cpp',
21
]
21
]
22
22
23
FINAL_LIBRARY = 'xul'
23
FINAL_LIBRARY = 'xul'
24
25
if CONFIG['GNU_CXX']:
26
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/protocol/about/moz.build (+3 lines)
Line     Link Here 
 Lines 25-32   UNIFIED_SOURCES += [ Link Here 
25
include('/ipc/chromium/chromium-config.mozbuild')
25
include('/ipc/chromium/chromium-config.mozbuild')
26
26
27
FINAL_LIBRARY = 'xul'
27
FINAL_LIBRARY = 'xul'
28
28
29
LOCAL_INCLUDES += [
29
LOCAL_INCLUDES += [
30
    '/netwerk/base',
30
    '/netwerk/base',
31
    '/netwerk/cache2',
31
    '/netwerk/cache2',
32
]
32
]
33
34
if CONFIG['GNU_CXX']:
35
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/protocol/file/moz.build (+3 lines)
Line     Link Here 
 Lines 20-27   UNIFIED_SOURCES += [ Link Here 
20
    'nsFileProtocolHandler.cpp',
20
    'nsFileProtocolHandler.cpp',
21
]
21
]
22
22
23
FINAL_LIBRARY = 'xul'
23
FINAL_LIBRARY = 'xul'
24
24
25
LOCAL_INCLUDES += [
25
LOCAL_INCLUDES += [
26
    '/netwerk/base',
26
    '/netwerk/base',
27
]
27
]
28
29
if CONFIG['GNU_CXX']:
30
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/protocol/ftp/moz.build (+3 lines)
Line     Link Here 
 Lines 35-42   IPDL_SOURCES += [ Link Here 
35
35
36
include('/ipc/chromium/chromium-config.mozbuild')
36
include('/ipc/chromium/chromium-config.mozbuild')
37
37
38
FINAL_LIBRARY = 'xul'
38
FINAL_LIBRARY = 'xul'
39
39
40
LOCAL_INCLUDES += [
40
LOCAL_INCLUDES += [
41
    '/netwerk/base',
41
    '/netwerk/base',
42
]
42
]
43
44
if CONFIG['GNU_CXX']:
45
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/protocol/websocket/moz.build (+3 lines)
Line     Link Here 
 Lines 42-49   IPDL_SOURCES += [ Link Here 
42
include('/ipc/chromium/chromium-config.mozbuild')
42
include('/ipc/chromium/chromium-config.mozbuild')
43
43
44
FINAL_LIBRARY = 'xul'
44
FINAL_LIBRARY = 'xul'
45
45
46
LOCAL_INCLUDES += [
46
LOCAL_INCLUDES += [
47
    '/dom/base',
47
    '/dom/base',
48
    '/netwerk/base',
48
    '/netwerk/base',
49
]
49
]
50
51
if CONFIG['GNU_CXX']:
52
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/sctp/datachannel/moz.build (+3 lines)
Line     Link Here 
 Lines 30-37   if CONFIG['OS_TARGET'] != 'Android': Link Here 
30
    DEFINES['INET6'] = 1
30
    DEFINES['INET6'] = 1
31
31
32
if CONFIG['OS_TARGET'] == 'WINNT':
32
if CONFIG['OS_TARGET'] == 'WINNT':
33
    DEFINES['__Userspace_os_Windows'] = 1
33
    DEFINES['__Userspace_os_Windows'] = 1
34
else:
34
else:
35
    DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
35
    DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
36
36
37
NO_PGO = True # Don't PGO
37
NO_PGO = True # Don't PGO
38
39
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
40
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/standalone/moz.build (+3 lines)
Line     Link Here 
 Lines 44-51   LOCAL_INCLUDES = [ Link Here 
44
    '../dns',
44
    '../dns',
45
]
45
]
46
46
47
DEFINES['IDNA2008'] = False
47
DEFINES['IDNA2008'] = False
48
DEFINES['MOZILLA_INTERNAL_API'] = True
48
DEFINES['MOZILLA_INTERNAL_API'] = True
49
DEFINES['MOZILLA_EXTERNAL_LINKAGE'] = True
49
DEFINES['MOZILLA_EXTERNAL_LINKAGE'] = True
50
50
51
include('/ipc/chromium/chromium-config.mozbuild')
51
include('/ipc/chromium/chromium-config.mozbuild')
52
53
if CONFIG['GNU_CXX']:
54
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/streamconv/test/moz.build (+3 lines)
Line     Link Here 
 Lines 12-19   UNIFIED_SOURCES += [ Link Here 
12
]
12
]
13
13
14
if CONFIG['OS_ARCH'] == 'WINNT':
14
if CONFIG['OS_ARCH'] == 'WINNT':
15
    DEFINES['NGPREFS'] = True
15
    DEFINES['NGPREFS'] = True
16
    if CONFIG['GNU_CXX']:
16
    if CONFIG['GNU_CXX']:
17
        LDFLAGS += ['-mconsole']
17
        LDFLAGS += ['-mconsole']
18
    else:
18
    else:
19
        LDFLAGS += ['-SUBSYSTEM:CONSOLE']
19
        LDFLAGS += ['-SUBSYSTEM:CONSOLE']
20
21
if CONFIG['GNU_CXX']:
22
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/system/mac/moz.build (+3 lines)
Line     Link Here 
 Lines 4-11    Link Here 
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
7
SOURCES += [
7
SOURCES += [
8
    'nsNetworkLinkService.mm',
8
    'nsNetworkLinkService.mm',
9
]
9
]
10
10
11
FINAL_LIBRARY = 'xul'
11
FINAL_LIBRARY = 'xul'
12
13
if CONFIG['CLANG_CXX']:
14
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/netwerk/test/moz.build (+3 lines)
Line     Link Here 
 Lines 57-64   USE_LIBS += ['static:js'] Link Here 
57
if CONFIG['ENABLE_INTL_API'] and CONFIG['MOZ_ICU_DATA_ARCHIVE']:
57
if CONFIG['ENABLE_INTL_API'] and CONFIG['MOZ_ICU_DATA_ARCHIVE']:
58
    # The ICU libraries linked into libmozjs will not include the ICU data,
58
    # The ICU libraries linked into libmozjs will not include the ICU data,
59
    # so link it directly.
59
    # so link it directly.
60
    USE_LIBS += ['icudata']
60
    USE_LIBS += ['icudata']
61
61
62
CXXFLAGS += CONFIG['TK_CFLAGS']
62
CXXFLAGS += CONFIG['TK_CFLAGS']
63
63
64
include('/ipc/chromium/chromium-config.mozbuild')
64
include('/ipc/chromium/chromium-config.mozbuild')
65
66
if CONFIG['GNU_CXX']:
67
    CXXFLAGS += ['-Wno-shadow']
(-)a/netwerk/wifi/moz.build (+1 lines)
Line     Link Here 
 Lines 52-64   elif CONFIG['OS_ARCH'] == 'SunOS': Link Here 
52
    UNIFIED_SOURCES += [
52
    UNIFIED_SOURCES += [
53
        'nsWifiScannerSolaris.cpp',
53
        'nsWifiScannerSolaris.cpp',
54
    ]
54
    ]
55
55
56
if CONFIG['NECKO_WIFI_DBUS']:
56
if CONFIG['NECKO_WIFI_DBUS']:
57
    UNIFIED_SOURCES += [
57
    UNIFIED_SOURCES += [
58
        'nsWifiScannerDBus.cpp',
58
        'nsWifiScannerDBus.cpp',
59
    ]
59
    ]
60
    CXXFLAGS += ['-Wno-error=shadow']
60
61
61
if CONFIG['NECKO_WIFI_DBUS']:
62
if CONFIG['NECKO_WIFI_DBUS']:
62
    CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
63
    CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
63
64
64
FINAL_LIBRARY = 'xul'
65
FINAL_LIBRARY = 'xul'
(-)a/parser/html/moz.build (-2 / +4 lines)
Line     Link Here 
 Lines 93-102   UNIFIED_SOURCES += [ Link Here 
93
FINAL_LIBRARY = 'xul'
93
FINAL_LIBRARY = 'xul'
94
94
95
# DEFINES['ENABLE_VOID_MENUITEM'] = True
95
# DEFINES['ENABLE_VOID_MENUITEM'] = True
96
96
97
LOCAL_INCLUDES += [
97
LOCAL_INCLUDES += [
98
    '/dom/base',
98
    '/dom/base',
99
]
99
]
100
100
101
if CONFIG['CLANG_CXX']:
101
if CONFIG['GNU_CXX']:
102
    CXXFLAGS += ['-Wno-implicit-fallthrough']
102
    CXXFLAGS += ['-Wno-error=shadow']
103
    if CONFIG['CLANG_CXX']:
104
        CXXFLAGS += ['-Wno-implicit-fallthrough']
(-)a/parser/htmlparser/moz.build (+3 lines)
Line     Link Here 
 Lines 43-50   UNIFIED_SOURCES += [ Link Here 
43
    'nsParserModule.cpp',
43
    'nsParserModule.cpp',
44
    'nsParserMsgUtils.cpp',
44
    'nsParserMsgUtils.cpp',
45
    'nsParserService.cpp',
45
    'nsParserService.cpp',
46
    'nsScanner.cpp',
46
    'nsScanner.cpp',
47
    'nsScannerString.cpp',
47
    'nsScannerString.cpp',
48
]
48
]
49
49
50
FINAL_LIBRARY = 'xul'
50
FINAL_LIBRARY = 'xul'
51
52
if CONFIG['GNU_CXX']:
53
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/rdf/base/moz.build (+3 lines)
Line     Link Here 
 Lines 49-56   UNIFIED_SOURCES += [ Link Here 
49
    'nsRDFXMLDataSource.cpp',
49
    'nsRDFXMLDataSource.cpp',
50
    'nsRDFXMLParser.cpp',
50
    'nsRDFXMLParser.cpp',
51
    'nsRDFXMLSerializer.cpp',
51
    'nsRDFXMLSerializer.cpp',
52
    'rdfTriplesSerializer.cpp',
52
    'rdfTriplesSerializer.cpp',
53
    'rdfutil.cpp',
53
    'rdfutil.cpp',
54
]
54
]
55
55
56
FINAL_LIBRARY = 'xul'
56
FINAL_LIBRARY = 'xul'
57
58
if CONFIG['GNU_CXX']:
59
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/security/certverifier/moz.build (+3 lines)
Line     Link Here 
 Lines 75-83   if CONFIG['_MSC_VER']: Link Here 
75
75
76
  # Gecko headers aren't warning-free enough for us to enable these warnings
76
  # Gecko headers aren't warning-free enough for us to enable these warnings
77
  CXXFLAGS += [
77
  CXXFLAGS += [
78
    '-wd4100', # 'symbol' : unreferenced formal parameter
78
    '-wd4100', # 'symbol' : unreferenced formal parameter
79
    '-wd4127', # conditional expression is constant
79
    '-wd4127', # conditional expression is constant
80
    '-wd4946', # reinterpret_cast used between related types
80
    '-wd4946', # reinterpret_cast used between related types
81
  ]
81
  ]
82
82
83
if CONFIG['GNU_CXX']:
84
    CXXFLAGS += ['-Wno-error=shadow']
85
83
FINAL_LIBRARY = 'xul'
86
FINAL_LIBRARY = 'xul'
(-)a/security/manager/ssl/moz.build (+3 lines)
Line     Link Here 
 Lines 183-190   for var in ('DLL_PREFIX', 'DLL_SUFFIX'): Link Here 
183
183
184
DEFINES['CERT_AddTempCertToPerm'] = '__CERT_AddTempCertToPerm'
184
DEFINES['CERT_AddTempCertToPerm'] = '__CERT_AddTempCertToPerm'
185
185
186
USE_LIBS += [
186
USE_LIBS += [
187
    'crmf',
187
    'crmf',
188
]
188
]
189
189
190
include('/ipc/chromium/chromium-config.mozbuild')
190
include('/ipc/chromium/chromium-config.mozbuild')
191
192
if CONFIG['GNU_CXX']:
193
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/security/manager/ssl/tests/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 16-23   LOCAL_INCLUDES += [ Link Here 
16
    '/security/manager/ssl',
16
    '/security/manager/ssl',
17
    '/security/pkix/include',
17
    '/security/pkix/include',
18
    '/security/pkix/test/lib',
18
    '/security/pkix/test/lib',
19
]
19
]
20
20
21
include('/ipc/chromium/chromium-config.mozbuild')
21
include('/ipc/chromium/chromium-config.mozbuild')
22
22
23
FINAL_LIBRARY = 'xul-gtest'
23
FINAL_LIBRARY = 'xul-gtest'
24
25
if CONFIG['GNU_CXX']:
26
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/security/pkix/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 27-38   TEST_DIRS += [ Link Here 
27
]
27
]
28
28
29
include('warnings.mozbuild')
29
include('warnings.mozbuild')
30
30
31
Library('mozillapkix')
31
Library('mozillapkix')
32
32
33
FINAL_LIBRARY = 'xul'
33
FINAL_LIBRARY = 'xul'
34
34
35
if CONFIG['GNU_CXX']:
36
    CXXFLAGS += ['-Wno-error=shadow']
37
35
if CONFIG['_MSC_VER']:
38
if CONFIG['_MSC_VER']:
36
    # This is intended as a temporary hack to support building with VS2015.
39
    # This is intended as a temporary hack to support building with VS2015.
37
    # declaration of '*' hides class member
40
    # declaration of '*' hides class member
38
    CXXFLAGS += ['-wd4458']
41
    CXXFLAGS += ['-wd4458']
(-)a/security/pkix/test/gtest/moz.build (-7 / +9 lines)
Line     Link Here 
 Lines 34-56   LOCAL_INCLUDES += [ Link Here 
34
34
35
FINAL_LIBRARY = 'xul-gtest'
35
FINAL_LIBRARY = 'xul-gtest'
36
36
37
include('../../warnings.mozbuild')
37
include('../../warnings.mozbuild')
38
38
39
# These warnings are disabled in order to minimize the amount of boilerplate
39
# These warnings are disabled in order to minimize the amount of boilerplate
40
# required to implement tests, and/or because they originate in the GTest
40
# required to implement tests, and/or because they originate in the GTest
41
# framework in a way we cannot otherwise work around.
41
# framework in a way we cannot otherwise work around.
42
if CONFIG['CLANG_CXX']:
42
if CONFIG['GNU_CXX']:
43
  CXXFLAGS += [
43
    CXXFLAGS += ['-Wno-error=shadow']
44
    '-Wno-exit-time-destructors',
44
    if CONFIG['CLANG_CXX']:
45
    '-Wno-global-constructors',
45
      CXXFLAGS += [
46
    '-Wno-old-style-cast',
46
        '-Wno-exit-time-destructors',
47
    '-Wno-used-but-marked-unused',
47
        '-Wno-global-constructors',
48
  ]
48
        '-Wno-old-style-cast',
49
        '-Wno-used-but-marked-unused',
50
      ]
49
elif CONFIG['_MSC_VER']:
51
elif CONFIG['_MSC_VER']:
50
  CXXFLAGS += [
52
  CXXFLAGS += [
51
    '-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::...
53
    '-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::...
52
    '-wd4275', # non dll-interface class used as base for dll-interface class
54
    '-wd4275', # non dll-interface class used as base for dll-interface class
53
    '-wd4548', # Expression before comma has no effect
55
    '-wd4548', # Expression before comma has no effect
54
    '-wd4625', # copy constructor could not be generated.
56
    '-wd4625', # copy constructor could not be generated.
55
    '-wd4626', # assugment operator could not be generated.
57
    '-wd4626', # assugment operator could not be generated.
56
    '-wd4640', # construction of local static object is not thread safe.
58
    '-wd4640', # construction of local static object is not thread safe.
(-)a/security/pkix/test/lib/moz.build (+3 lines)
Line     Link Here 
 Lines 29-36   SOURCES += [ Link Here 
29
Library('pkixtestutil')
29
Library('pkixtestutil')
30
30
31
LOCAL_INCLUDES += [
31
LOCAL_INCLUDES += [
32
    '../../include',
32
    '../../include',
33
    '../../lib',
33
    '../../lib',
34
]
34
]
35
35
36
FINAL_LIBRARY = 'xul-gtest'
36
FINAL_LIBRARY = 'xul-gtest'
37
38
if CONFIG['GNU_CXX']:
39
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/security/sandbox/linux/glue/moz.build (+3 lines)
Line     Link Here 
 Lines 20-27   LOCAL_INCLUDES += [ Link Here 
20
]
20
]
21
21
22
if CONFIG['OS_TARGET'] == 'Android':
22
if CONFIG['OS_TARGET'] == 'Android':
23
    USE_LIBS += [
23
    USE_LIBS += [
24
        'mozsandbox',
24
        'mozsandbox',
25
    ]
25
    ]
26
26
27
FINAL_LIBRARY = 'xul'
27
FINAL_LIBRARY = 'xul'
28
29
if CONFIG['GNU_CXX']:
30
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/security/sandbox/linux/moz.build (+3 lines)
Line     Link Here 
 Lines 77-92   SOURCES += [ Link Here 
77
# dependency like the one in libxul does, but this way the behavior is
77
# dependency like the one in libxul does, but this way the behavior is
78
# consistent.  See also the comment in SandboxLogging.h.
78
# consistent.  See also the comment in SandboxLogging.h.
79
SOURCES['../chromium/base/strings/safe_sprintf.cc'].flags += ['-DNDEBUG']
79
SOURCES['../chromium/base/strings/safe_sprintf.cc'].flags += ['-DNDEBUG']
80
80
81
# Keep clang from warning about intentional 'switch' fallthrough in icu_utf.cc:
81
# Keep clang from warning about intentional 'switch' fallthrough in icu_utf.cc:
82
if CONFIG['CLANG_CXX']:
82
if CONFIG['CLANG_CXX']:
83
    SOURCES['../chromium/base/third_party/icu/icu_utf.cc'].flags += ['-Wno-implicit-fallthrough']
83
    SOURCES['../chromium/base/third_party/icu/icu_utf.cc'].flags += ['-Wno-implicit-fallthrough']
84
84
85
if CONFIG['GNU_CXX']:
86
    CXXFLAGS += ['-Wno-shadow']
87
85
# gcc lto likes to put the top level asm in syscall.cc in a different partition
88
# gcc lto likes to put the top level asm in syscall.cc in a different partition
86
# from the function using it which breaks the build.  Work around that by
89
# from the function using it which breaks the build.  Work around that by
87
# forcing there to be only one partition.
90
# forcing there to be only one partition.
88
if '-flto' in CONFIG['OS_CXXFLAGS'] and not CONFIG['CLANG_CXX']:
91
if '-flto' in CONFIG['OS_CXXFLAGS'] and not CONFIG['CLANG_CXX']:
89
    LDFLAGS += ['--param lto-partitions=1']
92
    LDFLAGS += ['--param lto-partitions=1']
90
93
91
DEFINES['NS_NO_XPCOM'] = True
94
DEFINES['NS_NO_XPCOM'] = True
92
DISABLE_STL_WRAPPING = True
95
DISABLE_STL_WRAPPING = True
(-)a/storage/moz.build (+3 lines)
Line     Link Here 
 Lines 108-115   if CONFIG['MOZ_MEMORY'] and (not CONFIG[ Link Here 
108
DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000
108
DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000
109
109
110
LOCAL_INCLUDES += [
110
LOCAL_INCLUDES += [
111
    '/db/sqlite3/src',
111
    '/db/sqlite3/src',
112
    '/dom/base',
112
    '/dom/base',
113
]
113
]
114
114
115
CXXFLAGS += CONFIG['SQLITE_CFLAGS']
115
CXXFLAGS += CONFIG['SQLITE_CFLAGS']
116
117
if CONFIG['GNU_CXX']:
118
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/testing/mochitest/ssltunnel/moz.build (+3 lines)
Line     Link Here 
 Lines 13-20   SOURCES += [ Link Here 
13
USE_LIBS += [
13
USE_LIBS += [
14
    'nspr',
14
    'nspr',
15
    'nss',
15
    'nss',
16
]
16
]
17
17
18
# This isn't XPCOM code, but it wants to use STL, so disable the STL
18
# This isn't XPCOM code, but it wants to use STL, so disable the STL
19
# wrappers
19
# wrappers
20
DISABLE_STL_WRAPPING = True
20
DISABLE_STL_WRAPPING = True
21
22
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
23
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/components/downloads/moz.build (+3 lines)
Line     Link Here 
 Lines 67-74   LOCAL_INCLUDES += [ Link Here 
67
    '../protobuf',
67
    '../protobuf',
68
    '/ipc/chromium/src'
68
    '/ipc/chromium/src'
69
]
69
]
70
70
71
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
71
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
72
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
72
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
73
73
74
CXXFLAGS += CONFIG['TK_CFLAGS']
74
CXXFLAGS += CONFIG['TK_CFLAGS']
75
76
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
77
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/components/places/moz.build (+3 lines)
Line     Link Here 
 Lines 90-97   if CONFIG['MOZ_PLACES']: Link Here 
90
        ]
90
        ]
91
91
92
    FINAL_LIBRARY = 'xul'
92
    FINAL_LIBRARY = 'xul'
93
93
94
include('/ipc/chromium/chromium-config.mozbuild')
94
include('/ipc/chromium/chromium-config.mozbuild')
95
95
96
with Files('**'):
96
with Files('**'):
97
    BUG_COMPONENT = ('Toolkit', 'Places')
97
    BUG_COMPONENT = ('Toolkit', 'Places')
98
99
if CONFIG['GNU_CXX']:
100
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/toolkit/components/telemetry/moz.build (+3 lines)
Line     Link Here 
 Lines 78-85   DEFINES['MOZ_APP_VERSION'] = '"%s"' % CO Link Here 
78
78
79
LOCAL_INCLUDES += [
79
LOCAL_INCLUDES += [
80
    '/xpcom/build',
80
    '/xpcom/build',
81
    '/xpcom/threads',
81
    '/xpcom/threads',
82
]
82
]
83
83
84
SPHINX_TREES['telemetry'] = 'docs'
84
SPHINX_TREES['telemetry'] = 'docs'
85
SPHINX_TREES['healthreport'] = 'docs/fhr'
85
SPHINX_TREES['healthreport'] = 'docs/fhr'
86
87
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
88
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/toolkit/components/url-classifier/moz.build (+3 lines)
Line     Link Here 
 Lines 63-70   EXPORTS += [ Link Here 
63
FINAL_LIBRARY = 'xul'
63
FINAL_LIBRARY = 'xul'
64
64
65
LOCAL_INCLUDES += [
65
LOCAL_INCLUDES += [
66
    '../build',
66
    '../build',
67
    '/ipc/chromium/src',
67
    '/ipc/chromium/src',
68
]
68
]
69
69
70
CXXFLAGS += CONFIG['SQLITE_CFLAGS']
70
CXXFLAGS += CONFIG['SQLITE_CFLAGS']
71
72
if CONFIG['GNU_CXX']:
73
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/toolkit/crashreporter/crashreporter.mozbuild (+1 lines)
Line     Link Here 
 Lines 11-26   LOCAL_INCLUDES += [ Link Here 
11
# Suppress warnings in third-party code.
11
# Suppress warnings in third-party code.
12
if CONFIG['_MSC_VER']:
12
if CONFIG['_MSC_VER']:
13
    CXXFLAGS += [
13
    CXXFLAGS += [
14
        '-wd4005', # macro redefinition
14
        '-wd4005', # macro redefinition
15
    ]
15
    ]
16
elif CONFIG['GNU_CXX']:
16
elif CONFIG['GNU_CXX']:
17
    CXXFLAGS += [
17
    CXXFLAGS += [
18
        '-Wno-unused-local-typedefs',
18
        '-Wno-unused-local-typedefs',
19
        '-Wno-shadow',
19
    ]
20
    ]
20
    if CONFIG['CLANG_CXX']:
21
    if CONFIG['CLANG_CXX']:
21
        CXXFLAGS += ['-Wno-implicit-fallthrough']
22
        CXXFLAGS += ['-Wno-implicit-fallthrough']
22
23
23
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
24
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
24
    DEFINES['ELFSIZE'] = 32
25
    DEFINES['ELFSIZE'] = 32
25
26
26
DEFINES['NO_STABS_SUPPORT'] = True
27
DEFINES['NO_STABS_SUPPORT'] = True
(-)a/toolkit/crashreporter/google-breakpad/src/client/mac/crash_generation/moz.build (+2 lines)
Line     Link Here 
 Lines 10-17   UNIFIED_SOURCES += [ Link Here 
10
]
10
]
11
11
12
FINAL_LIBRARY = 'xul'
12
FINAL_LIBRARY = 'xul'
13
13
14
LOCAL_INCLUDES += [
14
LOCAL_INCLUDES += [
15
    '../../..',
15
    '../../..',
16
]
16
]
17
17
18
if CONFIG['CLANG_CXX']:
19
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/crashreporter/google-breakpad/src/client/moz.build (+2 lines)
Line     Link Here 
 Lines 9-16   SOURCES += [ Link Here 
9
]
9
]
10
10
11
FINAL_LIBRARY = 'xul'
11
FINAL_LIBRARY = 'xul'
12
12
13
LOCAL_INCLUDES += [
13
LOCAL_INCLUDES += [
14
    '..',
14
    '..',
15
]
15
]
16
16
17
if CONFIG['GNU_CXX']:
18
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/crashreporter/google-breakpad/src/common/linux/moz.build (+3 lines)
Line     Link Here 
 Lines 51-58   if CONFIG['OS_TARGET'] == 'Android': Link Here 
51
51
52
Library('breakpad_linux_common_s')
52
Library('breakpad_linux_common_s')
53
53
54
FINAL_LIBRARY = 'xul'
54
FINAL_LIBRARY = 'xul'
55
55
56
HOST_DEFINES['NO_STABS_SUPPORT'] = True
56
HOST_DEFINES['NO_STABS_SUPPORT'] = True
57
57
58
include('/toolkit/crashreporter/crashreporter.mozbuild')
58
include('/toolkit/crashreporter/crashreporter.mozbuild')
59
60
if CONFIG['GNU_CXX']:
61
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/crashreporter/moz.build (+3 lines)
Line     Link Here 
 Lines 112-119   LOCAL_INCLUDES += [ Link Here 
112
PYTHON_UNIT_TESTS += [
112
PYTHON_UNIT_TESTS += [
113
    'tools/unit-symbolstore.py',
113
    'tools/unit-symbolstore.py',
114
]
114
]
115
115
116
include('/toolkit/crashreporter/crashreporter.mozbuild')
116
include('/toolkit/crashreporter/crashreporter.mozbuild')
117
117
118
with Files('**'):
118
with Files('**'):
119
    BUG_COMPONENT = ('Toolkit', 'Breakpad Integration')
119
    BUG_COMPONENT = ('Toolkit', 'Breakpad Integration')
120
121
if CONFIG['GNU_CXX']:
122
    CXXFLAGS += ['-Wno-shadow']
(-)a/toolkit/xre/moz.build (+3 lines)
Line     Link Here 
 Lines 179-186   CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS Link Here 
179
179
180
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
180
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
181
    CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
181
    CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
182
182
183
DEFINES['TOPOBJDIR'] = TOPOBJDIR
183
DEFINES['TOPOBJDIR'] = TOPOBJDIR
184
FINAL_TARGET_PP_FILES += [
184
FINAL_TARGET_PP_FILES += [
185
    'platform.ini'
185
    'platform.ini'
186
]
186
]
187
188
if CONFIG['GNU_CXX']:
189
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/tools/memory-profiler/moz.build (+2 lines)
Line     Link Here 
 Lines 20-27   if CONFIG['MOZ_ENABLE_PROFILER_SPS']: Link Here 
20
20
21
    LOCAL_INCLUDES += [
21
    LOCAL_INCLUDES += [
22
        '/js/xpconnect/src',
22
        '/js/xpconnect/src',
23
        '/xpcom/base',
23
        '/xpcom/base',
24
    ]
24
    ]
25
25
26
    FINAL_LIBRARY = 'xul'
26
    FINAL_LIBRARY = 'xul'
27
27
28
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
29
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/tools/profiler/moz.build (-1 / +4 lines)
Line     Link Here 
 Lines 137-145   if CONFIG['MOZ_TASK_TRACER']: Link Here 
137
    UNIFIED_SOURCES += [
137
    UNIFIED_SOURCES += [
138
        'tasktracer/GeckoTaskTracer.cpp',
138
        'tasktracer/GeckoTaskTracer.cpp',
139
        'tasktracer/TracedTaskCommon.cpp',
139
        'tasktracer/TracedTaskCommon.cpp',
140
    ]
140
    ]
141
141
142
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
142
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
143
143
144
if CONFIG['GNU_CXX']:
144
if CONFIG['GNU_CXX']:
145
    CXXFLAGS += ['-Wno-ignored-qualifiers']  # due to use of breakpad headers
145
    CXXFLAGS += [
146
        '-Wno-error=shadow',
147
        '-Wno-ignored-qualifiers', # due to use of breakpad headers
148
    ]
(-)a/tools/profiler/tests/gtest/moz.build (+3 lines)
Line     Link Here 
 Lines 17-24   LOCAL_INCLUDES += [ Link Here 
17
    '/tools/profiler/lul',
17
    '/tools/profiler/lul',
18
]
18
]
19
19
20
UNIFIED_SOURCES += [
20
UNIFIED_SOURCES += [
21
    'ThreadProfileTest.cpp',
21
    'ThreadProfileTest.cpp',
22
]
22
]
23
23
24
FINAL_LIBRARY = 'xul-gtest'
24
FINAL_LIBRARY = 'xul-gtest'
25
26
if CONFIG['GNU_CXX']:
27
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/uriloader/exthandler/moz.build (+2 lines)
Line     Link Here 
 Lines 72-87   elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'ui Link Here 
72
        'uikit/nsMIMEInfoUIKit.mm',
72
        'uikit/nsMIMEInfoUIKit.mm',
73
        'uikit/nsOSHelperAppService.mm',
73
        'uikit/nsOSHelperAppService.mm',
74
    ]
74
    ]
75
else:
75
else:
76
    # These files can't be built in unified mode because they redefine LOG.
76
    # These files can't be built in unified mode because they redefine LOG.
77
    SOURCES += [
77
    SOURCES += [
78
        osdir + '/nsOSHelperAppService.cpp',
78
        osdir + '/nsOSHelperAppService.cpp',
79
    ]
79
    ]
80
    if CONFIG['GNU_CXX']:
81
        CXXFLAGS += ['-Wno-error=shadow']
80
82
81
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
83
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
82
    UNIFIED_SOURCES += [
84
    UNIFIED_SOURCES += [
83
        'unix/nsGNOMERegistry.cpp',
85
        'unix/nsGNOMERegistry.cpp',
84
        'unix/nsMIMEInfoUnix.cpp',
86
        'unix/nsMIMEInfoUnix.cpp',
85
    ]
87
    ]
86
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
88
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
87
    UNIFIED_SOURCES += [
89
    UNIFIED_SOURCES += [
(-)a/uriloader/prefetch/moz.build (+2 lines)
Line     Link Here 
 Lines 36-43   IPDL_SOURCES += [ Link Here 
36
include('/ipc/chromium/chromium-config.mozbuild')
36
include('/ipc/chromium/chromium-config.mozbuild')
37
37
38
FINAL_LIBRARY = 'xul'
38
FINAL_LIBRARY = 'xul'
39
39
40
LOCAL_INCLUDES += [
40
LOCAL_INCLUDES += [
41
    '/dom/base',
41
    '/dom/base',
42
]
42
]
43
43
44
if CONFIG['GNU_CXX'] and not CONFIG['CLANG_CXX']:
45
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/widget/android/moz.build (+2 lines)
Line     Link Here 
 Lines 56-64   LOCAL_INCLUDES += [ Link Here 
56
    '/dom/base',
56
    '/dom/base',
57
    '/dom/system/android',
57
    '/dom/system/android',
58
    '/netwerk/base',
58
    '/netwerk/base',
59
    '/netwerk/cache',
59
    '/netwerk/cache',
60
    '/widget',
60
    '/widget',
61
    '/widget/android/android',
61
    '/widget/android/android',
62
]
62
]
63
63
64
CXXFLAGS += ['-Wno-error=shadow']
65
64
#DEFINES['DEBUG_WIDGETS'] = True
66
#DEFINES['DEBUG_WIDGETS'] = True
(-)a/widget/gtk/moz.build (+2 lines)
Line     Link Here 
 Lines 121-128   if not (CONFIG['MOZ_WIDGET_TOOLKIT'] == Link Here 
121
121
122
CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
122
CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
123
123
124
CFLAGS += CONFIG['TK_CFLAGS']
124
CFLAGS += CONFIG['TK_CFLAGS']
125
CXXFLAGS += CONFIG['TK_CFLAGS']
125
CXXFLAGS += CONFIG['TK_CFLAGS']
126
126
127
if CONFIG['MOZ_ENABLE_DBUS']:
127
if CONFIG['MOZ_ENABLE_DBUS']:
128
    CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
128
    CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
129
130
CXXFLAGS += ['-Wno-error=shadow']
(-)a/widget/moz.build (+3 lines)
Line     Link Here 
 Lines 248-255   LOCAL_INCLUDES += [ Link Here 
248
    '/widget/%s' % widget_dir,
248
    '/widget/%s' % widget_dir,
249
]
249
]
250
FINAL_LIBRARY = 'xul'
250
FINAL_LIBRARY = 'xul'
251
251
252
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
252
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
253
    DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
253
    DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
254
254
255
CXXFLAGS += CONFIG['TK_CFLAGS']
255
CXXFLAGS += CONFIG['TK_CFLAGS']
256
257
if CONFIG['GNU_CXX']:
258
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/xpcom/glue/tests/gtest/moz.build (+2 lines)
Line     Link Here 
 Lines 15-22   UNIFIED_SOURCES += [ Link Here 
15
LOCAL_INCLUDES = [
15
LOCAL_INCLUDES = [
16
    '../..',
16
    '../..',
17
]
17
]
18
18
19
FINAL_LIBRARY = 'xul-gtest'
19
FINAL_LIBRARY = 'xul-gtest'
20
20
21
if CONFIG['CLANG_CXX']:
21
if CONFIG['CLANG_CXX']:
22
    CXXFLAGS += ['-Wshadow']
22
    CXXFLAGS += ['-Wshadow']
23
elif CONFIG['GNU_CXX']:
24
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/xpcom/reflect/xptinfo/moz.build (+2 lines)
Line     Link Here 
 Lines 30-37   EXPORTS.mozilla += [ Link Here 
30
LOCAL_INCLUDES += [
30
LOCAL_INCLUDES += [
31
    '/dom/base',
31
    '/dom/base',
32
]
32
]
33
33
34
FINAL_LIBRARY = 'xul'
34
FINAL_LIBRARY = 'xul'
35
35
36
if CONFIG['CLANG_CXX']:
36
if CONFIG['CLANG_CXX']:
37
    CXXFLAGS += ['-Wshadow']
37
    CXXFLAGS += ['-Wshadow']
38
elif CONFIG['GNU_CXX']:
39
    CXXFLAGS += ['-Wno-error=shadow']
(-)a/xpfe/components/directory/moz.build (+3 lines)
Line     Link Here 
 Lines 10-17   XPIDL_SOURCES += [ Link Here 
10
10
11
XPIDL_MODULE = 'directory'
11
XPIDL_MODULE = 'directory'
12
12
13
SOURCES += [
13
SOURCES += [
14
    'nsDirectoryViewer.cpp',
14
    'nsDirectoryViewer.cpp',
15
]
15
]
16
16
17
FINAL_LIBRARY = 'xul'
17
FINAL_LIBRARY = 'xul'
18
19
if CONFIG['GNU_CXX']:
20
    CXXFLAGS += ['-Wno-error=shadow']

Return to bug 1272513