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

ruby-changes:36833

From: nobu <ko1@a...>
Date: Sun, 21 Dec 2014 14:51:28 +0900 (JST)
Subject: [ruby-changes:36833] nobu:r48914 (trunk): handle.c: suppress warnings

nobu	2014-12-21 14:51:23 +0900 (Sun, 21 Dec 2014)

  New Revision: 48914

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

  Log:
    handle.c: suppress warnings
    
    * ext/fiddle/handle.c (CHECK_DLERROR): suppress warnings for using
      the result of an assignment as a condition without parentheses.

  Modified files:
    trunk/ext/fiddle/handle.c
Index: ext/fiddle/handle.c
===================================================================
--- ext/fiddle/handle.c	(revision 48913)
+++ ext/fiddle/handle.c	(revision 48914)
@@ -314,7 +314,7 @@ fiddle_handle_sym(void *handle, const ch https://github.com/ruby/ruby/blob/trunk/ext/fiddle/handle.c#L314
 {
 #if defined(HAVE_DLERROR)
     const char *err;
-# define CHECK_DLERROR if( err = dlerror() ){ func = 0; }
+# define CHECK_DLERROR if ((err = dlerror()) != 0) { func = 0; }
 #else
 # define CHECK_DLERROR
 #endif

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

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