diff options
Diffstat (limited to 'cmdarg_err.h')
-rw-r--r-- | cmdarg_err.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmdarg_err.h b/cmdarg_err.h index e50b89a8a5..0d7670f9cf 100644 --- a/cmdarg_err.h +++ b/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 } |