diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-05 07:46:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-05 07:46:26 +0000 |
commit | d0536f651414556b2e7836bc4adcb1ff27fa6547 (patch) | |
tree | ff1e5243228ccec7680f1f6d1341e88d5bd4c3e5 /ext/dl | |
parent | e3b9ed7649a62d37fce1f588cd84802c93331520 (diff) |
dl/dl.h: suppress warning
* ext/dl/dl.h (dlopen): suppress unused-but-set-variable warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/dl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h index 07adbbf680..f8380a8471 100644 --- a/ext/dl/dl.h +++ b/ext/dl/dl.h @@ -22,7 +22,7 @@ #else # if defined(_WIN32) # include <windows.h> -# define dlopen(name,flag) ((void*)LoadLibrary(name)) +# define dlopen(name,flag) ((void)(flag),(void*)LoadLibrary(name)) # define dlerror() strerror(rb_w32_map_errno(GetLastError())) # define dlsym(handle,name) ((void*)GetProcAddress((handle),(name))) # define RTLD_LAZY -1 |