Fine by me.
On Tue, Dec 3, 2013 at 4:29 PM, Pádraig Brady <[email protected]> wrote: > On 12/03/2013 04:19 PM, Ivailo wrote: > > Thanks, but I'm afraid you will have to add -Wformat-security to the > > pragmas. I've tested the patch adapted for diffutils and the gnulib > > test suite still fails the same way, unless I add the pragma my self > > that is. > > Thankgs for testing. Going with this so: > > +/* Tell GCC not to warn about the specific edge cases tested here. */ > +#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ > +# pragma GCC diagnostic ignored "-Wformat-zero-length" > +# pragma GCC diagnostic ignored "-Wformat-nonliteral" > +# pragma GCC diagnostic ignored "-Wformat-security" > +#endif > >
