bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: security format patch


From: Pádraig Brady
Subject: Re: security format patch
Date: Tue, 03 Dec 2013 16:29:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]