From bade6e467e4fade333fb8c9d7627a4381732871d Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 21 Dec 2014 05:51:23 +0000 Subject: [PATCH] handle.c: suppress warnings * ext/fiddle/handle.c (CHECK_DLERROR): suppress warnings for using the result of an assignment as a condition without parentheses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/fiddle/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c index f03b040435..4cfeedaedd 100644 --- a/ext/fiddle/handle.c +++ b/ext/fiddle/handle.c @@ -314,7 +314,7 @@ fiddle_handle_sym(void *handle, const char *name) { #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