[Bug c/23113] [3.4/4.0/4.1 regression] The -Wunused (value computed is not used) option missed an important case
trt at acm dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 1 16:48:00 GMT 2005
------- Additional Comments From trt at acm dot org 2005-08-01 16:48 -------
Thanks! I did a grep of the gcc sources:
find . -name '*.c' -print | xargs grep '^[ ]*\*[a-zA-Z_]*++;'
and found 3 harmless cases of *p++ (* superfluous, sizeof(*p)==1), but also:
./libobjc/gc.c: *current++;
I'm fairly sure that (*current)++; was intended.
I'm not familiar with objective C, does it share warning messages with C?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23113
More information about the Gcc-bugs
mailing list