* Removed ifdef __GNUC__ around printf-like prototypes since both clang and gcc have format/printf macros defined

This commit is contained in:
Olof hagsand 2022-01-18 16:05:50 +01:00
parent 519fe1f576
commit b164f02277
11 changed files with 1 additions and 56 deletions

View file

@ -41,11 +41,7 @@
/*
* Prototypes
*/
#if defined(__GNUC__) && __GNUC__ >= 3
int restconf_reply_header(void *req, const char *name, const char *vfmt, ...) __attribute__ ((format (printf, 3, 4)));
#else
int restconf_reply_header(void *req, const char *name, const char *vfmt, ...);
#endif
/* note cb is consumed dont free */
int restconf_reply_send(void *req, int code, cbuf *cb, int head);