From f2535e14676359cf9e6f04d233f56cff11d1a5ee Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 8 May 2016 00:55:29 +0000 Subject: * configure.in: add -Wsuggest-attribute=format and suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ configure.in | 1 + ext/objspace/objspace_dump.c | 1 + 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 89c596c999..854e23ced8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 8 08:51:38 2016 NARUSE, Yui + + * configure.in: add -Wsuggest-attribute=format and suppress warnings. + Sun May 8 08:31:03 2016 NARUSE, Yui * 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, ...) { -- cgit v1.2.3