summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-21 05:51:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-21 05:51:23 +0000
commitbade6e467e4fade333fb8c9d7627a4381732871d (patch)
tree02e84be034aa24468d973869a925c23f5a5fedab /ext
parent53a7c96417c360f7dfe5b7ed1b81d68867168ef9 (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/fiddle/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c
index f03b040..4cfeeda 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