Skip to content

Commit

Permalink
Merge pull request #164 from cgzones/format
Browse files Browse the repository at this point in the history
Annotate cfg_error with format attribute

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Apr 24, 2023
2 parents 93316a2 + 45cd40d commit 16d69b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/confuse.h
Expand Up @@ -770,6 +770,9 @@ DLLIMPORT cfg_errfunc_t __export cfg_set_error_function(cfg_t *cfg, cfg_errfunc_
/** Show a parser error. Any user-defined error reporting function is called.
* @see cfg_set_error_function
*/
#ifdef __GNUC__
__attribute__((__format__(__printf__, 2, 3)))
#endif
DLLIMPORT void __export cfg_error(cfg_t *cfg, const char *fmt, ...);

/** Returns the option comment
Expand Down

0 comments on commit 16d69b3

Please sign in to comment.