Skip to content

Commit

Permalink
Bug 1110031 - Part 1: Mark more directories as FAIL_ON_WARNINGS. r=gps
Browse files Browse the repository at this point in the history
  • Loading branch information
cpeterso committed Dec 11, 2014
1 parent fb74d8f commit 24ee691
Show file tree
Hide file tree
Showing 51 changed files with 102 additions and 0 deletions.
2 changes: 2 additions & 0 deletions accessible/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ if CONFIG['MOZ_ENABLE_DBUS']:
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']

include('/ipc/chromium/chromium-config.mozbuild')

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ if CONFIG['ACCESSIBILITY']:
FINAL_LIBRARY = 'xul'

include('/ipc/chromium/chromium-config.mozbuild')

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/other/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ LOCAL_INCLUDES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/windows/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ FINAL_LIBRARY = 'xul'
# macros which conflicts with std::min/max. Suppress the macros:
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['NOMINMAX'] = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/windows/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ LOCAL_INCLUDES += [
include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/windows/sdn/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ LOCAL_INCLUDES += [
DEFINES['NOMINMAX'] = True

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions accessible/windows/uia/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ FINAL_LIBRARY = 'xul'
# macros which conflicts with std::min/max. Suppress the macros:
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['NOMINMAX'] = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions b2g/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
OS_LIBS += [
'version',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions b2g/gaia/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ else:
]
DEFINES['B2G_NAME'] = '"%s-bin%s"' % (PROGRAM, CONFIG['BIN_SUFFIX'])
DEFINES['GAIA_PATH'] = '"gaia/profile"'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ if CONFIG['HAVE_CLOCK_MONOTONIC']:
OS_LIBS += CONFIG['REALTIME_LIBS']

JAR_MANIFESTS += ['jar.mn']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/about/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ FINAL_LIBRARY = 'browsercomps'
LOCAL_INCLUDES += [
'../build',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
# GTK2: Need to link with glib for GNOME shell service
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'gtk2', 'gtk3'):
OS_LIBS += CONFIG['TK_LIBS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/dirprovider/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ FINAL_LIBRARY = 'browsercomps'
LOCAL_INCLUDES += [
'../build'
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/feeds/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ for var in ('MOZ_APP_NAME', 'MOZ_MACBUNDLE_NAME'):
LOCAL_INCLUDES += [
'../build',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/migration/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ EXTRA_PP_JS_MODULES += [
]

FINAL_LIBRARY = 'browsercomps'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions browser/components/shell/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION'):
DEFINES[var] = '"%s"' % CONFIG[var]

CXXFLAGS += CONFIG['TK_CFLAGS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions docshell/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
LOCAL_INCLUDES += ['/uriloader/exthandler/mac']

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions dom/media/bridge/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ LOCAL_INCLUDES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions dom/media/omx/mediaresourcemanager/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ CXXFLAGS += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions dom/media/omx/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ CXXFLAGS += [

if CONFIG['ANDROID_VERSION'] > '15':
DEFINES['MOZ_OMX_WEBM_DECODER'] = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions mozglue/linker/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ TEST_DIRS += ['tests']
HOST_OS_LIBS += [
'z',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions parser/xml/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ SOURCES += [
MSVC_ENABLE_PGO = True

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'/rdf/base',
'/rdf/datasource',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/tests/rdfcat/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ SOURCES += [
]

CXXFLAGS += CONFIG['TK_CFLAGS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/tests/rdfpoll/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ GeckoProgram('rdfpoll', linkage='dependent')
SOURCES += [
'rdfpoll.cpp',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/tests/triplescat/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ SOURCES += [
]

CXXFLAGS += CONFIG['TK_CFLAGS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/util/internal/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ include('../objs.mozbuild')
SOURCES += rdf_util_src_cppsrcs

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions rdf/util/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ Library('rdfutil_external_s')

# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions startupcache/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ SOURCES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions testing/tools/screenshot/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
OS_LIBS += [
'gdiplus',
]

FAIL_ON_WARNINGS = True
3 changes: 3 additions & 0 deletions toolkit/components/ctypes/tests/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

NO_DIST_INSTALL = True

XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
Expand All @@ -19,3 +20,5 @@ SharedLibrary('jsctypes-test')
LOCAL_INCLUDES += [
'/js/src/ctypes',
]

FAIL_ON_WARNINGS = True
1 change: 1 addition & 0 deletions toolkit/devtools/server/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ EXTRA_JS_MODULES.devtools.server.actors.utils += [
'actors/utils/map-uri-to-addon-id.js'
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/library/StaticXULComponentsEnd/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ if '-flto' in CONFIG['OS_CXXFLAGS']:
Library('StaticXULComponentsEnd')

DEFINES['MOZILLA_INTERNAL_API'] = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/system/androidproxy/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ SOURCES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/system/dbus/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ CXXFLAGS += CONFIG['TK_CFLAGS']
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']

OS_LIBS += CONFIG['MOZ_DBUS_GLIB_LIBS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/system/osxproxy/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ SOURCES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/system/unixproxy/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ else:
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions toolkit/system/windowsproxy/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ SOURCES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions webapprt/mac/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ USE_LIBS += [
]

DISABLE_STL_WRAPPING = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions webapprt/win/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ DISABLE_STL_WRAPPING = True
OS_LIBS += [
'shell32',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpcom/reflect/xptcall/md/unix/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,5 @@ LOCAL_INCLUDES += [
]

NO_PGO = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpcom/reflect/xptcall/md/win32/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ LOCAL_INCLUDES += [
'../..',
'/xpcom/reflect/xptinfo',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpcom/reflect/xptcall/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ LOCAL_INCLUDES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpcom/tests/component/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ DEFINES['LIBRARY_FILENAME'] = '%s%s%s' % (
# Need to link with CoreFoundation on Mac
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
OS_LIBS += CONFIG['TK_LIBS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpcom/tests/component_no_aslr/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ DEFINES['LIBRARY_FILENAME'] = '%s%s%s' % (
# Need to link with CoreFoundation on Mac
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
OS_LIBS += CONFIG['TK_LIBS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpfe/components/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../directory',
]

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xpfe/components/windowds/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ SOURCES += [
]

FINAL_LIBRARY = 'xul'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xulrunner/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
]

DISABLE_STL_WRAPPING = True

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xulrunner/examples/simple/components/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ EXTRA_COMPONENTS += [
]

XPI_NAME = 'simple'

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xulrunner/stub/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ DISABLE_STL_WRAPPING = True
# Need to link with CoreFoundation on Mac
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
OS_LIBS += CONFIG['TK_LIBS']

FAIL_ON_WARNINGS = True
2 changes: 2 additions & 0 deletions xulrunner/tools/redit/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES[var] = True
if CONFIG['GNU_CC']:
WIN32_EXE_LDFLAGS += ['-municode']

FAIL_ON_WARNINGS = True

0 comments on commit 24ee691

Please sign in to comment.