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]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]