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

ruby-changes:30311

From: nobu <ko1@a...>
Date: Sun, 4 Aug 2013 00:41:41 +0900 (JST)
Subject: [ruby-changes:30311] nobu:r42363 (trunk): bignum.c: suppress warnings

nobu	2013-08-04 00:41:31 +0900 (Sun, 04 Aug 2013)

  New Revision: 42363

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42363

  Log:
    bignum.c: suppress warnings
    
    * bignum.c (power_cache_get_power): declare as inline before call to
      suppress warnings from gcc 4.2.

  Modified files:
    trunk/bignum.c

Index: bignum.c
===================================================================
--- bignum.c	(revision 42362)
+++ bignum.c	(revision 42363)
@@ -141,7 +141,7 @@ static inline VALUE bigtrunc(VALUE x); https://github.com/ruby/ruby/blob/trunk/bignum.c#L141
 
 static VALUE bigsq(VALUE x);
 static void bigdivmod(VALUE x, VALUE y, volatile VALUE *divp, volatile VALUE *modp);
-static VALUE power_cache_get_power(int base, int power_level, size_t *numdigits_ret);
+static inline VALUE power_cache_get_power(int base, int power_level, size_t *numdigits_ret);
 
 static int
 nlz16(uint16_t x)

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

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