libstdc++/2800: sstream compiles with warnings if -Wall
baldvin@angel.elte.hu
baldvin@angel.elte.hu
Fri May 11 00:46:00 GMT 2001
>Number: 2800
>Category: libstdc++
>Synopsis: sstream compiles with warnings if -Wall
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri May 11 00:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Baldvin Kovacs
>Release: gcc version 2.96 20000731
>Organization:
>Environment:
(Red Hat Linux 7.0)
>Description:
If I include <sstream>, and use -Wall, I got nasty
warnings:
In file included from sp.cc:3:
/usr/include/g++-3/sstream: In method `int stringbuf::sync ()':
/usr/include/g++-3/sstream:171: warning: comparison between signed and unsigned integer expressions
>How-To-Repeat:
Just type
g++ -o sp sp.c
(sp.c is a three line test prog)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="sp.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="sp.cc"
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KCgppbnQgbWFpbih2b2lkKSB7
CgogIG9zdHJpbmdzdHJlYW0gb3M7CiAgb3MgPDwgMTsKICBjb3V0IDw8IG9zLnN0cigpOwoKICBy
ZXR1cm4gMDsKfQo=
More information about the Gcc-prs
mailing list