Closed Bug 1411037 Opened 7 years ago Closed 7 years ago

Disable -Werror on -Wmultistatement-macros

Categories

(Developer Infrastructure :: Source Code Analysis, defect, P3)

defect

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(1 file)

/root/firefox-gcc-last/xpcom/base/nsConsoleService.cpp: In member function 'virtual nsresult nsConsoleService::QueryInterface(const nsIID&, void**)': /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/nsISupportsImpl.h:970:5: error: macro expands to multiple statements [-Werror=multistatement-macros] foundInterface = 0; \ ^~~~~~~~~~~~~~
Priority: -- → P3
Product: Core → Firefox Build System
Comment on attachment 8958410 [details] Bug 1411037 - Disable -Werror on -Wmultistatement-macros. Would be a pain to fix all occurrences, for very little gain https://reviewboard.mozilla.org/r/227372/#review233158 Thank you! ::: build/moz.configure/warnings.configure:102 (Diff revision 1) > check_and_add_gcc_warning('-Wno-error=coverage-mismatch', when='MOZ_PGO') > > # false positives depending on optimizations > check_and_add_gcc_warning('-Wno-error=free-nonheap-object') > > +# Would be a pain to fix that in all occurrences for a small gain Nit: I'd word this as "Would be a pain to fix all occurrences, for very little gain."
Attachment #8958410 - Flags: review?(nfroyd) → review+
Assignee: nobody → sledru
Summary: Fix the -Wmultistatement-macros in xpcom/base → Disable -Werror on -Wmultistatement-macros
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8861684c3209 Disable -Werror on -Wmultistatement-macros. Would be a pain to fix all occurrences, for very little gain r=froydnj
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: