ruby-changes:28067
From: nobu <ko1@a...>
Date: Fri, 5 Apr 2013 16:46:36 +0900 (JST)
Subject: [ruby-changes:28067] nobu:r40119 (trunk): dl/dl.h: suppress warning
nobu 2013-04-05 16:46:26 +0900 (Fri, 05 Apr 2013) New Revision: 40119 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40119 Log: dl/dl.h: suppress warning * ext/dl/dl.h (dlopen): suppress unused-but-set-variable warning. Modified files: trunk/ext/dl/dl.h Index: ext/dl/dl.h =================================================================== --- ext/dl/dl.h (revision 40118) +++ ext/dl/dl.h (revision 40119) @@ -22,7 +22,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/dl/dl.h#L22 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/