This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23113] [3.4/4.0/4.1 regression] The -Wunused (value computed is not used) option missed an important case
- From: "trt at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2005 16:48:55 -0000
- Subject: [Bug c/23113] [3.4/4.0/4.1 regression] The -Wunused (value computed is not used) option missed an important case
- References: <20050728172131.23113.trt@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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