[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] use of __attribute__ with printf
From: |
David Korn |
Subject: |
[open-cobol-list] use of __attribute__ with printf |
Date: |
Mon Feb 23 13:09:01 2004 |
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.
David Korn
address@hidden
- [open-cobol-list] use of __attribute__ with printf,
David Korn <=