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

ruby-changes:44779

From: nobu <ko1@a...>
Date: Sun, 20 Nov 2016 19:41:14 +0900 (JST)
Subject: [ruby-changes:44779] nobu:r56852 (trunk): proc.c: suppress warning

nobu	2016-11-20 19:41:09 +0900 (Sun, 20 Nov 2016)

  New Revision: 56852

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

  Log:
    proc.c: suppress warning
    
    * proc.c (NO_CLOBBERED): suppress clobbered warning which appears
      only on mingw.

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 56851)
+++ proc.c	(revision 56852)
@@ -18,7 +18,7 @@ https://github.com/ruby/ruby/blob/trunk/proc.c#L18
  * versions */
 #define PROC_NEW_REQUIRES_BLOCK 0
 
-#if !defined(__GNUC__) || __GNUC__ < 5
+#if !defined(__GNUC__) || __GNUC__ < 5 || defined(__MINGW32__)
 # define NO_CLOBBERED(v) (*(volatile VALUE *)&(v))
 #else
 # define NO_CLOBBERED(v) (v)

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

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