[Bug c/66658] missing -Wunused-value negating a function result in a comma expression
ethouris at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 11 15:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66658
Michal Malecki <ethouris at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ethouris at gmail dot com
--- Comment #3 from Michal Malecki <ethouris at gmail dot com> ---
Just caught this one, too, something like:
if (x(a, b), c)
{ ... }
Where x is declared as
int x(int a, int b, int c = -1);
There should be at least a warning that "suggested parentheses around the
expression", not necessarily with every case where the "comma operator" is
used.
More information about the Gcc-bugs
mailing list