Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 5226 invoked from network); 13 Sep 2005 15:48:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 15:48:15 -0000 Received: (qmail 51855 invoked by uid 500); 13 Sep 2005 15:48:15 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 51837 invoked by uid 500); 13 Sep 2005 15:48:15 -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 51819 invoked by uid 99); 13 Sep 2005 15:48:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 08:48:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.17.213.84] (HELO bco-exchange.bco.roguewave.com) (12.17.213.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 08:48:26 -0700 Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id NNYTRHTQ; Tue, 13 Sep 2005 09:46:49 -0600 Message-ID: <4326F52E.5020000@roguewave.com> Date: Tue, 13 Sep 2005 09:50:06 -0600 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: Warnings on Sun CC5.5 References: <2960_159_1126625206_501@inet3-n281> In-Reply-To: <2960_159_1126625206_501@inet3-n281> Content-Type: text/plain; charset=us-ascii; format=flowed 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 LANCE DIDUCK, BLOOMBERG/ 731 LEXIN wrote: > Are these warnings OK? Yes. The first one is a compiler bug (we should have a record of it in our database, which incidentally, I still need to transfer to the ASF Jira, but I can't find it at the moment; I still see it with 5.7 -- let me send it to Sun). We should remove the static specifier to silence the warning. The second one is a "feature" that Sun disables in their headers with #pragma disable_warn (since the C++ Standard requires these function signatures). I don't like the pragma because it turns off all warnings. I asked for a pragma (or compiler option) to disable individual warnings long time ago but it still hasn't been implemented. Martin > > configuring for CC-5.5 on SunOS-5.9-sparc > > CC -c -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG > -I/home7/ldiduck/couttest/stdcxx-2005-07-19/sun8_11s/include > -I/home7/ldiduck/couttest/stdcxx-2005-07-19/include -library=%none -g +w > /home7/ldiduck/couttest/stdcxx-2005-07-19/src/collate.cpp > "/home7/ldiduck/couttest/stdcxx-2005-07-19/src/collate.cpp", line 120: Warning > (Anachronism): "static" is not allowed and is being ignored. > 1 Warning(s) detected. > CC -c -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG > -I/home7/ldiduck/couttest/stdcxx-2005-07-19/sun8_11s/include > -I/home7/ldiduck/couttest/stdcxx-2005-07-19/include -library=%none -g +w > /home7/ldiduck/couttest/stdcxx-2005-07-19/src/strstream.cpp > "/home7/ldiduck/couttest/stdcxx-2005-07-19/include/strstream", line 188: > Warning: std::istrstream::rdbuf hides the function > std::ios::rdbuf(std::streambuf *). > "/home7/ldiduck/couttest/stdcxx-2005-07-19/include/strstream", line 226: > Warning: std::ostrstream::rdbuf hides the function > std::ios::rdbuf(std::streambuf *). > "/home7/ldiduck/couttest/stdcxx-2005-07-19/include/strstream", line 266: > Warning: std::strstream::rdbuf hides the function std::ios::rdbuf(std::streambuf > *). > 3 Warning(s) detected. >