incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-290) [aCC 6.05] +strict bogus warning 4204 on assert()
Date Mon, 18 Sep 2006 16:18:22 GMT
     [ http://issues.apache.org/jira/browse/STDCXX-290?page=all ]

Martin Sebor updated STDCXX-290:
--------------------------------

    Summary: [aCC 6.05] +strict bogus warning 4204 on assert()  (was: aCC 6.05 +strict bogus
warning 4204 on assert())

> [aCC 6.05] +strict bogus warning 4204 on assert()
> -------------------------------------------------
>
>                 Key: STDCXX-290
>                 URL: http://issues.apache.org/jira/browse/STDCXX-290
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: HP aCC 6.05/HP-UX 11.23
>            Reporter: Martin Sebor
>
> -------- Original Message --------
> Subject: RE: aCC 6.05 +strict bogus warning 4204 on assert()
> Date: Sat, 16 Sep 2006 22:44:46 +0530
> From: Doval, Shruti (STSD) <shruti@hp.com>
> To: Martin Sebor <sebor@roguewave.com>, <acxx@cup.hp.com>
> Hi,
>   A CR was filed for this against libc team by Ganesh.
>  JAGag14298: Wrong prototype for __assert in <assert.h>/Warning 4244 for
> assert macro
>  In /usr/include/assert.h, the declaration of __assert is: 
>        extern void __assert(char *, char *, int); 
> it should be:  
>        extern void __assert(const char *, const char *, int); 
> Regards,
> Shruti  
> > -----Original Message-----
> > From: Martin Sebor [mailto:sebor@roguewave.com] 
> > Sent: Saturday, September 16, 2006 3:45 AM
> > To: acxx@cup.hp.com
> > Subject: aCC 6.05 +strict bogus warning 4204 on assert()
> > 
> > I'm getting the warning below with 6.05 when I enable +strict.
> > 
> > Martin
> > 
> > $ cat t.cpp && aCC -AA -c +strict t.cpp
> > #include <assert.h>
> > 
> > void foo (const char *s)
> > {
> >      assert (0 != s);
> > }
> > "t.cpp", line 5: warning #4204-D: The implicit conversion 
> > from const to
> >            nonconst qualification for string literals is deprecated
> >        assert (0 != s);
> >        ^
> > 
> > "t.cpp", line 5: warning #4204-D: The implicit conversion 
> > from const to
> >            nonconst qualification for string literals is deprecated
> >        assert (0 != s);
> >        ^
> > 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message