[前][次][番号順一覧][スレッド一覧]

ruby-changes:42871

From: naruse <ko1@a...>
Date: Sun, 8 May 2016 09:07:00 +0900 (JST)
Subject: [ruby-changes:42871] naruse:r54945 (trunk): * configure.in: add -Wsuggest-attribute=format and suppress warnings.

naruse	2016-05-08 09:55:29 +0900 (Sun, 08 May 2016)

  New Revision: 54945

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54945

  Log:
    * configure.in: add -Wsuggest-attribute=format and suppress warnings.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/ext/objspace/objspace_dump.c
Index: configure.in
===================================================================
--- configure.in	(revision 54944)
+++ configure.in	(revision 54945)
@@ -836,6 +836,7 @@ if test "$GCC:${warnflags+set}:no" = yes https://github.com/ruby/ruby/blob/trunk/configure.in#L836
 		 -Werror=deprecated-declarations \
 		 -Wno-packed-bitfield-compat \
 		 -Wsuggest-attribute=noreturn \
+		 -Wsuggest-attribute=format \
 		 $extra_warning \
 		 ; do
 	if test "$particular_werror_flags" != yes; then
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54944)
+++ ChangeLog	(revision 54945)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May  8 08:51:38 2016  NARUSE, Yui  <naruse@r...>
+
+	* configure.in: add -Wsuggest-attribute=format and suppress warnings.
+
 Sun May  8 08:31:03 2016  NARUSE, Yui  <naruse@r...>
 
 	* configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.
Index: ext/objspace/objspace_dump.c
===================================================================
--- ext/objspace/objspace_dump.c	(revision 54944)
+++ ext/objspace/objspace_dump.c	(revision 54945)
@@ -33,6 +33,7 @@ struct dump_config { https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace_dump.c#L33
     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, ...)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]