diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-23 11:21:15 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:11 +0200 |
commit | 1103df63ef3ed435edd7d219d03f13522041ee63 (patch) | |
tree | 9fe540eaaf1012274b65dbd5250e9d65e2c9d2f1 /gettext-tools/libgettextpo/gettext-po.h.in | |
parent | 3697423eed556874514f642d77abcfca87249d12 (diff) | |
download | external_gettext-1103df63ef3ed435edd7d219d03f13522041ee63.zip external_gettext-1103df63ef3ed435edd7d219d03f13522041ee63.tar.gz external_gettext-1103df63ef3ed435edd7d219d03f13522041ee63.tar.bz2 |
Add format attribute to error handling methods.
Diffstat (limited to 'gettext-tools/libgettextpo/gettext-po.h.in')
-rw-r--r-- | gettext-tools/libgettextpo/gettext-po.h.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gettext-tools/libgettextpo/gettext-po.h.in b/gettext-tools/libgettextpo/gettext-po.h.in index ada8ad6..b0e710f 100644 --- a/gettext-tools/libgettextpo/gettext-po.h.in +++ b/gettext-tools/libgettextpo/gettext-po.h.in @@ -55,7 +55,11 @@ struct po_error_handler Must increment the error_message_count variable declared in error.h. Must not return if STATUS is nonzero. */ void (*error) (int status, int errnum, - const char *format, ...); + const char *format, ...) +#if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__ + __attribute__ ((__format__ (__printf__, 3, 4))) +#endif + ; /* Signal an error. The error message is built from FORMAT and the following arguments. The error location is at FILENAME line LINENO. ERRNUM, if @@ -64,7 +68,11 @@ struct po_error_handler Must not return if STATUS is nonzero. */ void (*error_at_line) (int status, int errnum, const char *filename, unsigned int lineno, - const char *format, ...); + const char *format, ...) +#if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__ + __attribute__ ((__format__ (__printf__, 5, 6))) +#endif + ; /* Signal a multiline warning. The PREFIX applies to all lines of the MESSAGE. Free the PREFIX and MESSAGE when done. */ |