bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sharutils does not build with -Werror=format-security


From: Bruce Korb
Subject: Re: sharutils does not build with -Werror=format-security
Date: Mon, 14 Oct 2013 10:32:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9

On 10/14/13 02:44, Santiago Vila wrote:
So, your recommendation is that I forget about -Werror=format-security entirely 
in sharutils?

I'd recommend disabling that error mode if the patched sharutils still fails.
If disabling NLS causes the warning to disappear, then use the warning IFF
NLS is disabled.  (It should -- since the format strings would be constant
at that point.)  In other words, you would have a "compile only" test to
verify that other-than-NLS-translated-strings were okay.

Is there a way to tell gcc "this line is correct" without disabling 
-Werror=format-security
everywhere?

#pragma-s, but that won't be happening.  That is much worse than "%s"-wrapping
the translated strings.



reply via email to

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