Re-enable warnings-as-errors on Windows in some directories
Categories
(Firefox Build System :: General, enhancement)
Tracking
(firefox67 fixed)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: emk, Assigned: emk)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 3 obsolete files)
|
20.41 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
|
3.83 KB,
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
|
28.28 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
|
1.50 KB,
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
|
979 bytes,
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
People already fixed many warnings without re-enabling warnings-as-errors.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 10•7 years ago
|
||
| Assignee | ||
Comment 11•7 years ago
|
||
| Assignee | ||
Comment 12•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 13•7 years ago
|
||
| Assignee | ||
Comment 14•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Comment 15•7 years ago
|
||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Comment 16•7 years ago
|
||
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/045596fde4d0
Fix warnings and re-enable warnings-as-errors in ipc/mscom/. r=aklotz
Comment 17•7 years ago
|
||
| bugherder | ||
Comment 18•7 years ago
|
||
| bugherder | ||
Comment 19•7 years ago
|
||
Backed out 2 changesets (Bug 1528651) for bustages on ipc/mscom/ on beta sim
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=229649041&repo=try&lineNumber=14910
15:20:54 INFO - ipc/glue/Unified_cpp_ipc_glue1.i_o
15:20:54 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/glue'
15:20:54 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom/oop'
15:20:54 INFO - z:/task_1550761006/build/src/clang/bin/clang.exe --driver-mode=cl -m32 -FoActivationContext.i_o -c -DNDEBUG=1 -DTRIMMED=1 -D_UNICODE -DMOZ_NO_MOZALLOC -DUNICODE -DMOZ_MSCOM_REMARSHAL_NO_HANDLER -Iz:/task_1550761006/build/src/ipc/mscom/oop -Iz:/task_1550761006/build/src/obj-firefox/ipc/mscom/oop -Iz:/task_1550761006/build/src/obj-firefox/dist/include -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nspr -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nss -MT -FI z:/task_1550761006/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -Qunused-arguments -guard:cf -Qunused-arguments -fcrash-diagnostics-dir=z:/task_1550761006/public/build -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -guard:cf -W3 -Gy -Zc:inline -arch:SSE2 -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Z7 -Xclang -load -Xclang z:/task_1550761006/build/src/obj-firefox/build/clang-plugin/clang-plugin.dll -Xclang -add-plugin -Xclang moz-check -O2 -Oy- -WX -fprofile-instr-generate -Xclang -MP -Xclang -dependency-file -Xclang .deps/ActivationContext.i_o.pp -Xclang -MT -Xclang ActivationContext.i_o z:/task_1550761006/build/src/ipc/mscom/ActivationContext.cpp
15:20:54 INFO - z:/task_1550761006/build/src/ipc/mscom/ActivationContext.cpp(200,8): error: unused variable 'activated' [-Werror,-Wunused-variable]
15:20:54 INFO - BOOL activated = ::ActivateActCtx(mActCtx.mActCtx, &mActCookie);
15:20:54 INFO - ^
15:20:54 INFO - 1 error generated.
15:20:54 INFO - z:/task_1550761006/build/src/config/rules.mk:805: recipe for target 'ActivationContext.i_o' failed
15:20:54 INFO - mozmake.EXE[5]: *** [ActivationContext.i_o] Error 1
15:20:54 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom/oop'
15:20:54 INFO - z:/task_1550761006/build/src/config/recurse.mk:74: recipe for target 'ipc/mscom/oop/target' failed
15:20:54 INFO - mozmake.EXE[4]: *** [ipc/mscom/oop/target] Error 2
15:20:54 INFO - mozmake.EXE[4]: *** Waiting for unfinished jobs....
15:20:54 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/ipdl'
15:20:54 INFO - ipc/ipdl/UnifiedProtocols19.i_o
15:20:54 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/ipdl'
15:20:55 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/chromium'
15:20:55 INFO - z:/task_1550761006/build/src/clang/bin/clang.exe --driver-mode=cl -m32 -Fowin_util.i_o -c -Iz:/task_1550761006/build/src/obj-firefox/dist/stl_wrappers -DNDEBUG=1 -DTRIMMED=1 -DWIN32_LEAN_AND_MEAN -D_WIN32 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1 -D_UNICODE -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DUNICODE -D_WINDOWS -D_SECURE_ATL -DCOMPILER_MSVC -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Iz:/task_1550761006/build/src/ipc/chromium -Iz:/task_1550761006/build/src/obj-firefox/ipc/chromium -Iz:/task_1550761006/build/src/obj-firefox/ipc/ipdl/_ipdlheaders -Iz:/task_1550761006/build/src/ipc/chromium/src -Iz:/task_1550761006/build/src/ipc/glue -Iz:/task_1550761006/build/src/obj-firefox/dist/include -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nspr -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nss -MD -FI z:/task_1550761006/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -Qunused-arguments -guard:cf -Qunused-arguments -fcrash-diagnostics-dir=z:/task_1550761006/public/build -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -guard:cf -W3 -Gy -Zc:inline -arch:SSE2 -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Z7 -Xclang -load -Xclang z:/task_1550761006/build/src/obj-firefox/build/clang-plugin/clang-plugin.dll -Xclang -add-plugin -Xclang moz-check -O2 -Oy- -WX -fprofile-instr-generate -Xclang -finstrument-functions-after-inlining -Xclang -MP -Xclang -dependency-file -Xclang .deps/win_util.i_o.pp -Xclang -MT -Xclang win_util.i_o z:/task_1550761006/build/src/ipc/chromium/src/base/win_util.cc
15:20:55 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/chromium'
15:20:55 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/chromium'
15:20:55 INFO - ipc/chromium/ipc_channel_win.i_o
15:20:55 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/chromium'
15:20:56 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom'
15:20:56 INFO - z:/task_1550761006/build/src/clang/bin/clang.exe --driver-mode=cl -m32 -FoSpinEvent.i_o -c -Iz:/task_1550761006/build/src/obj-firefox/dist/stl_wrappers -DNDEBUG=1 -DTRIMMED=1 -DMOZ_MSCOM_REMARSHAL_NO_HANDLER -DWIN32_LEAN_AND_MEAN -D_WIN32 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1 -D_UNICODE -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DUNICODE -D_WINDOWS -D_SECURE_ATL -DCOMPILER_MSVC -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Iz:/task_1550761006/build/src/ipc/mscom -Iz:/task_1550761006/build/src/obj-firefox/ipc/mscom -Iz:/task_1550761006/build/src/xpcom/base -Iz:/task_1550761006/build/src/xpcom/build -Iz:/task_1550761006/build/src/obj-firefox/ipc/ipdl/_ipdlheaders -Iz:/task_1550761006/build/src/ipc/chromium/src -Iz:/task_1550761006/build/src/ipc/glue -Iz:/task_1550761006/build/src/obj-firefox/dist/include -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nspr -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nss -MD -FI z:/task_1550761006/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -Qunused-arguments -guard:cf -Qunused-arguments -fcrash-diagnostics-dir=z:/task_1550761006/public/build -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -guard:cf -W3 -Gy -Zc:inline -arch:SSE2 -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Z7 -Xclang -load -Xclang z:/task_1550761006/build/src/obj-firefox/build/clang-plugin/clang-plugin.dll -Xclang -add-plugin -Xclang moz-check -O2 -Oy- -WX -fprofile-instr-generate -Xclang -finstrument-functions-after-inlining -Xclang -MP -Xclang -dependency-file -Xclang .deps/SpinEvent.i_o.pp -Xclang -MT -Xclang SpinEvent.i_o z:/task_1550761006/build/src/ipc/mscom/SpinEvent.cpp
15:20:56 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom'
15:20:56 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom'
15:20:56 INFO - ipc/mscom/WeakRef.i_o
15:20:56 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/mscom'
15:20:57 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/glue'
15:20:57 INFO - z:/task_1550761006/build/src/clang/bin/clang.exe --driver-mode=cl -m32 -FoWindowsMessageLoop.i_o -c -Iz:/task_1550761006/build/src/obj-firefox/dist/stl_wrappers -DNDEBUG=1 -DTRIMMED=1 -DHAVE_UINT64_T -DWEBRTC_WIN -DHAVE_WINSOCK2_H -DWIN32_LEAN_AND_MEAN -D_WIN32 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1 -D_UNICODE -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DUNICODE -D_WINDOWS -D_SECURE_ATL -DCOMPILER_MSVC '-DMOZ_CHILD_PROCESS_NAME="plugin-container.exe"' '-DMOZ_CHILD_PROCESS_BUNDLE="plugin-container.app/Contents/MacOS/"' -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Iz:/task_1550761006/build/src/ipc/glue -Iz:/task_1550761006/build/src/obj-firefox/ipc/glue -Iz:/task_1550761006/build/src/caps -Iz:/task_1550761006/build/src/dom/broadcastchannel -Iz:/task_1550761006/build/src/dom/indexedDB -Iz:/task_1550761006/build/src/dom/storage -Iz:/task_1550761006/build/src/media/webrtc/trunk -Iz:/task_1550761006/build/src/media/webrtc/trunk/webrtc -Iz:/task_1550761006/build/src/xpcom/build -Iz:/task_1550761006/build/src/dom/ipc -Iz:/task_1550761006/build/src/toolkit/crashreporter -Iz:/task_1550761006/build/src/toolkit/xre -Iz:/task_1550761006/build/src/xpcom/threads -Iz:/task_1550761006/build/src/obj-firefox/ipc/ipdl/_ipdlheaders -Iz:/task_1550761006/build/src/ipc/chromium/src -Iz:/task_1550761006/build/src/ipc/glue -Iz:/task_1550761006/build/src/security/sandbox/chromium -Iz:/task_1550761006/build/src/security/sandbox/chromium-shim -Iz:/task_1550761006/build/src/security/sandbox/win/src/sandboxbroker -Iz:/task_1550761006/build/src/obj-firefox/dist/include -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nspr -Iz:/task_1550761006/build/src/obj-firefox/dist/include/nss -MD -FI z:/task_1550761006/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -Qunused-arguments -guard:cf -Qunused-arguments -fcrash-diagnostics-dir=z:/task_1550761006/public/build -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -guard:cf -W3 -Gy -Zc:inline -arch:SSE2 -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Z7 -Xclang -load -Xclang z:/task_1550761006/build/src/obj-firefox/build/clang-plugin/clang-plugin.dll -Xclang -add-plugin -Xclang moz-check -O2 -Oy- -WX -fprofile-instr-generate -Xclang -finstrument-functions-after-inlining -Xclang -MP -Xclang -dependency-file -Xclang .deps/WindowsMessageLoop.i_o.pp -Xclang -MT -Xclang WindowsMessageLoop.i_o z:/task_1550761006/build/src/ipc/glue/WindowsMessageLoop.cpp
15:20:57 INFO - mozmake.EXE[5]: Leaving directory 'z:/task_1550761006/build/src/obj-firefox/ipc/glue'
15:20:57 INFO - mozmake.EXE[5]: Entering directory 'z:/task_1550761006/build/src/obj-firefox/ipc/ipdl'
15:20:57 INFO - ipc/ipdl/UnifiedProtocols2.i_o
Updated•7 years ago
|
| Assignee | ||
Comment 20•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Backed out changeset 90ec592466c0 (Bug 1528651) for causing build bustages CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=230417730&repo=mozilla-inbound&lineNumber=27872
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/f2c0c83ede1719776285efcfbc207dc0d5e08af0
| Assignee | ||
Comment 23•7 years ago
|
||
Umm, are mingw-clang builds disabling replace-malloc? mozilla::Unused should be available if replace-malloc is enabled:
https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/memory/replace/logalloc/replay/moz.build#14
| Assignee | ||
Comment 24•7 years ago
|
||
| Assignee | ||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #25)
Created attachment 9047400 [details] [diff] [review]
Followup to fix a warning on release or betaI stopped using mozilla::Unused.
FWIW with this patch applied I still see errors on beta/release builds: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=231072755&repo=try&lineNumber=14830
Updated•7 years ago
|
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 29•7 years ago
|
||
| Assignee | ||
Comment 30•7 years ago
|
||
Beta simulation is green on try run with this patch and a patch from bug 1428158 included:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=24e838e7e4e2e8724fa8b26ce3184c4a74bc28ec
Comment 31•7 years ago
|
||
Not sure why but all my attempts at beta simulations were still showing build errors in ipc/mscom. I ended up needing to test with this in order to fix them: https://hg.mozilla.org/try/rev/aa63c93be5792ed1b16c6d4e151ed41883db9a8d
Comment 32•7 years ago
|
||
This is maddening. I'm half tempted to propose that we change the no-op case to something like:
#define MOZ_ASSERT(x) (void)reinterpret_cast<decltype(x)*>(0)
So that we "use" the variable but don't evaluate it.
| Assignee | ||
Comment 33•7 years ago
|
||
(In reply to Dave Townsend [:mossop] (he/him) from comment #31)
Not sure why but all my attempts at beta simulations were still showing build errors in ipc/mscom. I ended up needing to test with this in order to fix them: https://hg.mozilla.org/try/rev/aa63c93be5792ed1b16c6d4e151ed41883db9a8d
It is the same as my comment #29 patch.
Comment 34•7 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #33)
(In reply to Dave Townsend [:mossop] (he/him) from comment #31)
Not sure why but all my attempts at beta simulations were still showing build errors in ipc/mscom. I ended up needing to test with this in order to fix them: https://hg.mozilla.org/try/rev/aa63c93be5792ed1b16c6d4e151ed41883db9a8d
It is the same as my comment #29 patch.
Is there a reason you haven't requested review on it then?
| Assignee | ||
Comment 35•7 years ago
•
|
||
(In reply to Dave Townsend [:mossop] (he/him) from comment #34)
Is there a reason you haven't requested review on it then?
I already requested a review, was approved for landing, and requested landing via Lando. (Phabricator activities are not visible from Bugzilla.)
Comment 36•7 years ago
|
||
Comment 37•7 years ago
|
||
| bugherder | ||
Description
•