diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | ext/objspace/objspace_dump.c | 1 |
3 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Sun May 8 08:51:38 2016 NARUSE, Yui <naruse@ruby-lang.org> + + * configure.in: add -Wsuggest-attribute=format and suppress warnings. + Sun May 8 08:31:03 2016 NARUSE, Yui <naruse@ruby-lang.org> * configure.in: add -Wsuggest-attribute=noreturn and suppress warnings. diff --git a/configure.in b/configure.in index 846df591d7..48ee91c323 100644 --- a/configure.in +++ b/configure.in @@ -836,6 +836,7 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then -Werror=deprecated-declarations \ -Wno-packed-bitfield-compat \ -Wsuggest-attribute=noreturn \ + -Wsuggest-attribute=format \ $extra_warning \ ; do if test "$particular_werror_flags" != yes; then diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index a3f637b543..65eabceac8 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -33,6 +33,7 @@ struct dump_config { size_t cur_obj_references; }; +PRINTF_ARGS(static void dump_append(struct dump_config *, const char *, ...), 2, 3); static void dump_append(struct dump_config *dc, const char *format, ...) { |