Closed Bug 1389243 Opened 7 years ago Closed 7 years ago

Enable -Wparentheses when available

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Sylvestre, Assigned: Sylvestre)

Details

Attachments

(1 file)

Introduced in gcc 4.8, warns about some wrong operation priorities
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: nobody → sledru
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
silly me. This will be fixed with the upgrade to gcc 6 then
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
(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.
I don't understand why bug 1385537 wasn't detected by the CI
(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.
Attachment #8895987 - Flags: review?(mh+mozilla)
Product: Core → Firefox Build System
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: