From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24619 invoked by alias); 22 Jan 2014 18:02:19 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 24605 invoked by uid 89); 22 Jan 2014 18:02:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Jan 2014 18:02:18 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1W627v-0003l7-NQ from joseph_myers@mentor.com ; Wed, 22 Jan 2014 10:02:11 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 22 Jan 2014 10:02:11 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Wed, 22 Jan 2014 18:02:09 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1W627r-0003q2-TO; Wed, 22 Jan 2014 18:02:08 +0000 Date: Wed, 22 Jan 2014 18:05:00 -0000 From: "Joseph S. Myers" To: Prathamesh Kulkarni CC: gcc , Subject: Re: -Wformat-security warnings generated in gcc build In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2014-01/txt/msg00191.txt.bz2 On Wed, 22 Jan 2014, Prathamesh Kulkarni wrote: > Unfortunately, I am not clear on how to check for format specifiers in string. > Should I do it manually by checking the format string for specifiers > and call abort if found a no-argument specifier, > or is there a better way to do it ? I'll leave it to Dodji as diagnostics maintainer to advise on the best way to implement error_at_no_args. -- Joseph S. Myers joseph@codesourcery.com