summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-05 07:46:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-05 07:46:26 +0000
commitd0536f651414556b2e7836bc4adcb1ff27fa6547 (patch)
treeff1e5243228ccec7680f1f6d1341e88d5bd4c3e5 /ext
parente3b9ed7649a62d37fce1f588cd84802c93331520 (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')
-rw-r--r--ext/dl/dl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index 07adbbf..f8380a8 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