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

ruby-changes:43249

From: nobu <ko1@a...>
Date: Wed, 8 Jun 2016 15:29:19 +0900 (JST)
Subject: [ruby-changes:43249] nobu:r55323 (trunk): suppress static-in-inline warning

nobu	2016-06-08 15:29:14 +0900 (Wed, 08 Jun 2016)

  New Revision: 55323

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

  Log:
    suppress static-in-inline warning
    
    * ext/date/zonetab.list (zonetab): forward declaration as static.

  Modified files:
    trunk/ext/date/zonetab.h
    trunk/ext/date/zonetab.list
Index: ext/date/zonetab.h
===================================================================
--- ext/date/zonetab.h	(revision 55322)
+++ ext/date/zonetab.h	(revision 55323)
@@ -35,7 +35,7 @@ struct zone { https://github.com/ruby/ruby/blob/trunk/ext/date/zonetab.h#L35
     int name;
     int offset;
 };
-
+static const struct zone *zonetab();
 #line 9 "zonetab.list"
 struct zone;
 /* maximum key range = 434, duplicates = 0 */
Index: ext/date/zonetab.list
===================================================================
--- ext/date/zonetab.list	(revision 55322)
+++ ext/date/zonetab.list	(revision 55323)
@@ -3,7 +3,7 @@ struct zone { https://github.com/ruby/ruby/blob/trunk/ext/date/zonetab.list#L3
     int name;
     int offset;
 };
-
+static const struct zone *zonetab();
 %}
 
 struct zone;

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

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