mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
53a7c96417
commit
bade6e467e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue