This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23113] 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: 28 Jul 2005 19:27:31 -0000
- Subject: [Bug c/23113] 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-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