This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wformat-security warnings generated in gcc build
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>, <dodji at redhat dot com>
- Date: Wed, 22 Jan 2014 18:02:07 +0000
- Subject: Re: -Wformat-security warnings generated in gcc build
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsAMh25uwq5tCL86izSEMyvVtbUj4YNrmbZpFoFNVD=1Mg at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1401211749001 dot 20755 at digraph dot polyomino dot org dot uk> <CAJXstsBCTmcX0T=HQL9KmrKCwz6yZV95UXKiCPKOxRhLX8iLpA at mail dot gmail dot com>
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