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