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:
parent
57c5bffa85
commit
09c895785f
10
cmdarg_err.h
10
cmdarg_err.h
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue