[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Tweak NLS for better gcc printf format checking

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-08-21 11:48:43 CEST

On Sun, 21 Aug 2005, Philip Martin wrote:

> "Peter N. Lundblad" <peter@famlundblad.se> writes:
>
> > I have something similar, *but* looking in the GCC manual it says that
> > gettext, dgettext and dcgettext are treated specially unless -ansi or some
> > -std option is specified. That's why it works for me. (Look in the
> > section about the format_arg attribute).
>
> That's it! I use -std=c89 to get warnings about inadvertent use of
> non-c89 features and that kills any warnings about _ format strings.
> With my patch I can get all the warnings.
>
>
I consider this a glibc bug that it depends of people not using -ansi (the
declaration of ngettext, for example, has these attribute declarations.).
And if we get "static function not used" warnings of other compilers, then
this is definitely not worth it (would someone want to test this?).

Else I can live with this kludge, provided it doesn't impose other
portability problems.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 21 11:49:40 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.