Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 38341 invoked from network); 16 Oct 2007 14:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2007 14:33:35 -0000 Received: (qmail 15892 invoked by uid 500); 16 Oct 2007 14:33:22 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 15880 invoked by uid 500); 16 Oct 2007 14:33:22 -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 15869 invoked by uid 99); 16 Oct 2007 14:33:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 07:33:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 14:33:26 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l9GEWeQ6011356 for ; Tue, 16 Oct 2007 14:32:40 GMT Received: from [10.70.3.143] ([10.70.3.143]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Oct 2007 08:31:43 -0600 Message-ID: <4714CBA1.50402@roguewave.com> Date: Tue, 16 Oct 2007 08:33:05 -0600 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: __rw_once warnings in non-reentrant Windows builds? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Oct 2007 14:31:43.0801 (UTC) FILETIME=[4626AA90:01C81001] X-Virus-Checked: Checked by ClamAV on apache.org In a manual 11d build I just did with MSVC 8.0 I'm seeing warning C4297: 'function assumed not to throw an exception but does' for __rw_once(). When I double-click on the warning in the debugger output window it brings up the definition of __rw_once() that's guarded by #ifdef _RWSTD_REENTRANT (it points to line 133 in once.cpp), but the function text is grayed out, presumably because the block of code is not included. This doesn't seem to make sense. Why would the compiler give a warning for a function that's not even compiled? OTOH, if it is being compiled in this build type, it seems we have a problem (11d is not supposed to be reentrant). Does any of you Visual Studio gurus have idea what's going on? Martin