[Bug c/78503] -Wint-in-bool-context false positive on unsigned multiplication

2017-05-20 Thread edlinger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78503 --- Comment #3 from Bernd Edlinger --- It is on purpose that the warning gets suppressed when "(N) != 0" or "(N) + 0" is used, so that won't go away. But may I suggest the following for the XALLOCAVEC macro: #define XALLOCAVEC(T, N) ((N) > 0 ?

[Bug c/78503] -Wint-in-bool-context false positive on unsigned multiplication

2017-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78503 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/78503] -Wint-in-bool-context false positive on unsigned multiplication

2017-05-19 Thread jbeulich at novell dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78503 jbeulich at novell dot com changed: What|Removed |Added CC||jbeulich at novell dot com