Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 89259 invoked from network); 18 Sep 2006 16:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2006 16:11:20 -0000 Received: (qmail 11781 invoked by uid 500); 18 Sep 2006 16:11:17 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 11736 invoked by uid 500); 18 Sep 2006 16:11:16 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 11665 invoked by uid 99); 18 Sep 2006 16:11:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 09:11:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 09:11:15 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB3DB714300 for ; Mon, 18 Sep 2006 16:07:23 +0000 (GMT) Message-ID: <22793743.1158595643763.JavaMail.jira@brutus> Date: Mon, 18 Sep 2006 09:07:23 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-290) aCC 6.05 +strict bogus warning 4204 on assert() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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) To: Martin Sebor , Hi, A CR was filed for this against libc team by Ganesh. JAGag14298: Wrong prototype for __assert in /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 > > 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