Skip to content

Commit

Permalink
Merge pull request #713 from mame/prevent-printf-format-warning
Browse files Browse the repository at this point in the history
Prevent a warning of "a candidate for gnu_printf format attribute"
  • Loading branch information
mame authored Nov 27, 2024
2 parents dbd5042 + b8c1490 commit 686dcb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static void raise_generator_error_str(VALUE invalid_object, VALUE str)
#ifdef RBIMPL_ATTR_NORETURN
RBIMPL_ATTR_NORETURN()
#endif
#ifdef RBIMPL_ATTR_FORMAT
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
#endif
static void raise_generator_error(VALUE invalid_object, const char *fmt, ...)
{
va_list args;
Expand Down

0 comments on commit 686dcb1

Please # to comment.