Skip to content

Commit

Permalink
jv.h: define empty JV_{,V}PRINTF_LIKE macros if __GNUC__ is not defined
Browse files Browse the repository at this point in the history
Fixes #3159

Reported-by: Hsiang-Ying Fu
  • Loading branch information
emanuele6 authored Aug 13, 2024
1 parent c1d885b commit 137018d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jv.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ jv jv_array_indexes(jv, jv);
__attribute__ ((__format__( __printf__, fmt_arg_num, args_num)))
#define JV_VPRINTF_LIKE(fmt_arg_num) \
__attribute__ ((__format__( __printf__, fmt_arg_num, 0)))
#else
#define JV_PRINTF_LIKE(fmt_arg_num, args_num)
#define JV_VPRINTF_LIKE(fmt_arg_num)
#endif


Expand Down

0 comments on commit 137018d

Please sign in to comment.