public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26632]  New: spurious warning: value computed is not used
@ 2006-03-10 15:15 mattias at virtutech dot se
  2006-03-10 15:17 ` [Bug middle-end/26632] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: mattias at virtutech dot se @ 2006-03-10 15:15 UTC (permalink / raw)
  To: gcc-bugs

Using gcc 4.1.0 on amd64, with -Wall (64 bit target):

int g(void);
long h(void);
void f(void)
{
        0 ? h() : g();
}

foo.c:6: warning: value computed is not used

Either changing 0 to 1 or swapping g and h makes the warning go away.
This was the result of a (very reasonable) macro expansion.


-- 
           Summary: spurious warning: value computed is not used
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mattias at virtutech dot se
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-07-04 15:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-10 15:15 [Bug c/26632] New: spurious warning: value computed is not used mattias at virtutech dot se
2006-03-10 15:17 ` [Bug middle-end/26632] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-10 15:17 ` [Bug middle-end/26632] " pinskia at gcc dot gnu dot org
2006-03-10 15:30 ` [Bug middle-end/26632] [4.1/4.2 Regression] " mattias at virtutech dot se
2006-03-11  0:16 ` neil at daikokuya dot co dot uk
2006-04-16 18:58 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:46 ` mmitchel at gcc dot gnu dot org
2006-05-30 13:54 ` pinskia at gcc dot gnu dot org
2006-06-30  6:08 ` pinskia at gcc dot gnu dot org
2006-08-28  6:49 ` pinskia at gcc dot gnu dot org
2006-08-28 17:18 ` kazu at gcc dot gnu dot org
2006-08-30  6:00 ` [Bug middle-end/26632] [4.1 " kazu at gcc dot gnu dot org
2007-02-14  9:10 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:23 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).