1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-04-05 07:46:26 +00:00
parent e3b9ed7649
commit d0536f6514

View file

@ -22,7 +22,7 @@
#else #else
# if defined(_WIN32) # if defined(_WIN32)
# include <windows.h> # 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 dlerror() strerror(rb_w32_map_errno(GetLastError()))
# define dlsym(handle,name) ((void*)GetProcAddress((handle),(name))) # define dlsym(handle,name) ((void*)GetProcAddress((handle),(name)))
# define RTLD_LAZY -1 # define RTLD_LAZY -1