From patchwork Thu May 8 00:50:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 346860 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DB6B6140194 for ; Thu, 8 May 2014 10:53:10 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=Ww5XOUMJC1dgZcl9mASvQj6NPReoNjP+wqhmiYtHOZG hsyLQmThl2af8nx/3MXrWnpBz4HIs8LMxlfxDHdhgwR25H9IWoK2R/jBtbYHQQEn Fy+jjFvgxjPghbYxyKHQIVzid56WJ6nTt42CTL22ImTl5TCfjZzNs2VxhCAKft8M = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=Uu8RK+avsEMEqQeELSVjH/wanKw=; b=A7M2YTdBIRQ/wQ93c tGgfRM33LiysUTaKE8zIp/qwTgliz5LbeHGKPRECEHOYYH3yToPFgmSRAMDFWv1U QqdBuhtg3rcgX+oz3FyAGmrekOavGPdBDm7BjfoeECoAM14U+IkGH8zVPJ6o73iu RPRc0TMUXjLLEl3ug4BB4qM4fk= Received: (qmail 7641 invoked by alias); 8 May 2014 00:53:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 7620 invoked by uid 89); 8 May 2014 00:53:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 08 May 2014 00:52:59 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s480qu5Z025066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 8 May 2014 00:52:57 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s480qtRb004361 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 May 2014 00:52:56 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s480qtcK010658; Thu, 8 May 2014 00:52:55 GMT Received: from [192.168.1.4] (/79.35.208.86) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 07 May 2014 17:52:55 -0700 Message-ID: <536AD4F2.60308@oracle.com> Date: Thu, 08 May 2014 02:50:58 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: libstdc++ Subject: [v3] Mini-tweak to acinclude.m4 X-IsSubscribed: yes Hi, I don't think we have any reason to trigger a -Wwrite-strings warning, thus, barring objections, I'm going to commit the below. Thanks, Paolo. /////////////////////// 2014-05-08 Paolo Carlini * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Avoid -Wwrite-strings warning. * configure: Regenerate. Index: acinclude.m4 =================================================================== --- acinclude.m4 (revision 210183) +++ acinclude.m4 (working copy) @@ -1052,8 +1052,8 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ vscanf("%i", args); vsnprintf(fmt, 0, "%i", args); vsscanf(fmt, "%i", args); - }], - [snprintf("12", 0, "%i");], + snprintf(fmt, 0, "%i"); + }], [], [glibcxx_cv_c99_stdio=yes], [glibcxx_cv_c99_stdio=no]) ]) AC_MSG_RESULT($glibcxx_cv_c99_stdio)