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

Bruce Korb <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.