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] The -Wunused (value computed is not used) option missed an important case


------- Additional Comments From trt at acm dot org  2005-07-28 19:27 -------
In what sense is this bug "invalid"?  The comment I noted in c-typeck.c does not
match the current implementation, so one or both of those must be incorrect.

Older versions of gcc issued a warning for "*p++;" and so should  newer
versions. Yes it has a side-effect of increasing p by sizeof(int), but that is
not a reason to suppress the warning, it is the reason that the warning should
be issued!

-- 


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]