c/4697: Warning 'value computed is not used' missing

Haj.Ten.Brugge@net.HCC.nl Haj.Ten.Brugge@net.HCC.nl
Fri Oct 26 01:16:00 GMT 2001


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



More information about the Gcc-bugs mailing list