bug-gnulib
[Top][All Lists]
Advanced

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

Re: security format patch


From: Ivailo
Subject: Re: security format patch
Date: Tue, 3 Dec 2013 16:30:55 +0000

Fine by me.


On Tue, Dec 3, 2013 at 4:29 PM, Pádraig Brady <address@hidden> 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



reply via email to

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