With GCC 2.x and later, mark cmdarg_err() and cmdarg_err_cont() as being

printf-like.

svn path=/trunk/; revision=16530
This commit is contained in:
Guy Harris 2005-11-17 11:14:38 +00:00
parent 57c5bffa85
commit 09c895785f
1 changed files with 10 additions and 0 deletions

View File

@ -32,12 +32,22 @@ extern "C" {
/*
* Report an error in command-line arguments.
*/
#if __GNUC__ >= 2
extern void cmdarg_err(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
#else
extern void cmdarg_err(const char *fmt, ...);
#endif
/*
* Report additional information for an error in command-line arguments.
*/
#if __GNUC__ >= 2
extern void cmdarg_err_cont(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
#else
extern void cmdarg_err_cont(const char *fmt, ...);
#endif
#ifdef __cplusplus
}