diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-21 05:51:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-21 05:51:23 +0000 |
commit | bade6e467e4fade333fb8c9d7627a4381732871d (patch) | |
tree | 02e84be034aa24468d973869a925c23f5a5fedab /ext/fiddle | |
parent | 53a7c96417c360f7dfe5b7ed1b81d68867168ef9 (diff) | |
download | ruby-bade6e467e4fade333fb8c9d7627a4381732871d.tar.gz |
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/fiddle')
-rw-r--r-- | ext/fiddle/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |