This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/23113] [3.4/4.0/4.1 regression] The -Wunused (value computed is not used) option missed an important case


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]