gnucobol-users
[Top][All Lists]
Advanced

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

[open-cobol-list] Re: use of __attribute__ with printf


From: Keisuke Nishida
Subject: [open-cobol-list] Re: use of __attribute__ with printf
Date: Tue Feb 24 02:39:07 2004
User-agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryƍmae) APEL/10.3 Emacs/21.2 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI)

At Mon, 23 Feb 2004 16:07:56 -0500 (EST),
David Korn wrote:
> 
> You should change
>      __attribute__ ((format (printf, 1, 2)));
> to
>      __attribute__ ((format (__printf__, 1, 2)));
> 
> everywhere since user programs can have #defines for printf.
> In particular since we build open-cobol with sfio instead of the GNU stdio,
> printf gets mapped to _ast_printf which produces warning messages.
> 
> Better yet would be to use
> 
>      __attribute__ ((__format__ (__printf__, 1, 2)));
> to prevent extensions that use #define format to work.

Right.  I have fixed it.  Thanks.

Keisuke


reply via email to

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