diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 17:32:10 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 17:33:10 -0700 |
commit | c5501073ab629de3c5491258bf040462b873a85a (patch) | |
tree | 55a1a192225ef1830ac5f0a06aca36be01096927 /dlfcn.c | |
parent | 50f42865af91e83e0b0d9341a839deed359b1070 (diff) | |
download | dlfcn-win32-c5501073ab629de3c5491258bf040462b873a85a.tar.gz dlfcn-win32-c5501073ab629de3c5491258bf040462b873a85a.tar.bz2 dlfcn-win32-c5501073ab629de3c5491258bf040462b873a85a.zip |
Warning control in MSVC
Diffstat (limited to 'dlfcn.c')
-rw-r--r-- | dlfcn.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -373,6 +373,10 @@ end: | |||
373 | if( symbol == NULL ) | 373 | if( symbol == NULL ) |
374 | save_err_str( name ); | 374 | save_err_str( name ); |
375 | 375 | ||
376 | // warning C4054: 'type cast' : from function pointer 'FARPROC' to data pointer 'void *' | ||
377 | #ifdef _MSC_VER | ||
378 | #pragma warning( suppress: 4054 ) | ||
379 | #endif | ||
376 | return (void*) symbol; | 380 | return (void*) symbol; |
377 | } | 381 | } |
378 | 382 | ||
@@ -391,6 +395,7 @@ char *dlerror( void ) | |||
391 | #ifdef SHARED | 395 | #ifdef SHARED |
392 | BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) | 396 | BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) |
393 | { | 397 | { |
398 | (void) hinstDLL; | ||
394 | /* | 399 | /* |
395 | * https://msdn.microsoft.com/en-us/library/windows/desktop/ms682583(v=vs.85).aspx | 400 | * https://msdn.microsoft.com/en-us/library/windows/desktop/ms682583(v=vs.85).aspx |
396 | * | 401 | * |