Closed
Bug 1389243
Opened 7 years ago
Closed 7 years ago
Enable -Wparentheses when available
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement, P3)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Sylvestre, Assigned: Sylvestre)
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Details |
Introduced in gcc 4.8, warns about some wrong operation priorities
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
I was playing with some warnings Chris, so, I did it. Hope you don't mind! Found stuff only in thirdparty code: media/libcubeb/src/cubeb_pulse.c:755:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] gfx/vr/openvr/src/pathtools_public.cpp:658:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] Forwarded the second here: https://github.com/ValveSoftware/openvr/pull/607
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sledru
Assignee | ||
Comment 3•7 years ago
|
||
and for Cube: https://github.com/kinetiknz/cubeb/pull/349
Comment 4•7 years ago
|
||
We shouldn't need to explicitly enable -Wparentheses warnings because they are implicitly enabled by gcc's -Wall flag: https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Warning-Options.html
Comment 5•7 years ago
|
||
and clang -Wall: https://github.com/llvm-mirror/clang/blob/1ce5afe7e40266a14a2a0dbd2acbe45f78e60379/include/clang/Basic/DiagnosticGroups.td#L741
Assignee | ||
Comment 6•7 years ago
|
||
silly me. This will be fixed with the upgrade to gcc 6 then
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Comment 7•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #6) > silly me. This will be fixed with the upgrade to gcc 6 then We're already building with gcc 4.9, so it's effectively already there.
Assignee | ||
Comment 8•7 years ago
|
||
I don't understand why bug 1385537 wasn't detected by the CI
Comment 9•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #8) > I don't understand why bug 1385537 wasn't detected by the CI See comment 3 in that bug.
Updated•7 years ago
|
Attachment #8895987 -
Flags: review?(mh+mozilla)
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•