[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-20 22:18:12 CEST

On Fri, 19 Aug 2005, Philip Martin wrote:

> "Peter N. Lundblad" <peter@famlundblad.se> writes:
>
> > What GCC do you use?
>
> gcc version 4.0.1 20050610 (prerelease)
>
> > Format checking work on my GCC 4.0/glibc on Debina
> > testing. That's because these magic attributes are used internally by
> > libintl.h.
>
> I'm using Debian/stable with libc6-dev_2.3.2.ds1-22. My libintl.h has
>
> extern char *dgettext (__const char *__domainname, __const char *__msgid)
> __THROW;
>
> so it doesn't check the formats.
>

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).

Thansk,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 20 22:19:00 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.