public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/4697: Warning 'value computed is not used' missing
@ 2001-10-26 1:16 Haj.Ten.Brugge
0 siblings, 0 replies; 5+ messages in thread
From: Haj.Ten.Brugge @ 2001-10-26 1:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 4697
>Category: c
>Synopsis: Warning 'value computed is not used' missing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 26 01:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Haj.Ten.Brugge@net.HCC.nl
>Release: gcc-3.*
>Organization:
>Environment:
sparc, i386
>Description:
The following test program:
double tst(double a, double b) { a = a + 1,5 * b ; return a; }
When compiled with: '-Wall' gives the warning
'value computed is not used' in gcc-2.95.2. This warning
is missing in the gcc-3.* releases.
Notice the type error '1,5' instead of '1.5'.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c/4697: Warning 'value computed is not used' missing
@ 2002-02-22 4:13 jakub
0 siblings, 0 replies; 5+ messages in thread
From: jakub @ 2002-02-22 4:13 UTC (permalink / raw)
To: Haj.Ten.Brugge, gcc-bugs, gcc-prs, jakub
Synopsis: Warning 'value computed is not used' missing
State-Changed-From-To: analyzed->closed
State-Changed-By: jakub
State-Changed-When: Fri Feb 22 02:33:26 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4697
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c/4697: Warning 'value computed is not used' missing
@ 2002-02-21 6:43 jakub
0 siblings, 0 replies; 5+ messages in thread
From: jakub @ 2002-02-21 6:43 UTC (permalink / raw)
To: Haj.Ten.Brugge, gcc-bugs, gcc-prs, jakub, nobody
Synopsis: Warning 'value computed is not used' missing
Responsible-Changed-From-To: unassigned->jakub
Responsible-Changed-By: jakub
Responsible-Changed-When: Thu Feb 21 06:28:25 2002
Responsible-Changed-Why:
Mine.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4697
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c/4697: Warning 'value computed is not used' missing
@ 2001-10-26 11:14 neil
0 siblings, 0 replies; 5+ messages in thread
From: neil @ 2001-10-26 11:14 UTC (permalink / raw)
To: Haj.Ten.Brugge, gcc-bugs, gcc-prs, nobody
Synopsis: Warning 'value computed is not used' missing
State-Changed-From-To: closed->analyzed
State-Changed-By: neil
State-Changed-When: Fri Oct 26 11:14:54 2001
State-Changed-Why:
Sorry, I missed the word "missing" in your synopsis.
And yes, 5*b is the unused calculation.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4697&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c/4697: Warning 'value computed is not used' missing
@ 2001-10-26 2:33 neil
0 siblings, 0 replies; 5+ messages in thread
From: neil @ 2001-10-26 2:33 UTC (permalink / raw)
To: Haj.Ten.Brugge, gcc-bugs, gcc-prs, nobody
Synopsis: Warning 'value computed is not used' missing
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Fri Oct 26 02:33:01 2001
State-Changed-Why:
Have faith, the compiler is right. You're computing a + 1, and
not using the result.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4697&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-02-22 10:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-26 1:16 c/4697: Warning 'value computed is not used' missing Haj.Ten.Brugge
2001-10-26 2:33 neil
2001-10-26 11:14 neil
2002-02-21 6:43 jakub
2002-02-22 4:13 jakub
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).