Spurious compiler warnings (which get treated as errors in some cases)

Description

a.out_6.cpp: In member function ‘virtual bool cAc3179::matches(const void*, const void*)’:
a.out_6.cpp:13334:115: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
if (!(*((short *)(left + 2U)) > *((short *)(right + 2U)) || *((short *)(left + 2U)) == *((short *)(right + 2U)) && *((unsigned short *)(left + 0U)) <= *((unsigned short *)(right + 0U)))) {

Conclusion

None

Activity

Show:

Lorraine Chapman June 9, 2016 at 4:14 PM

I'm experiencing this when running against SALT34, FYI, getting lots of these when running the BWR_Iterate job:

Error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses] (3245, 108), 6003, W20160609-165500_6.cpp

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Affects versions

Created June 9, 2016 at 2:44 PM
Updated July 11, 2016 at 3:24 PM
Resolved June 10, 2016 at 10:56 AM

Flag notifications