aboutsummaryrefslogtreecommitdiff
path: root/dlfcn.c
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-15 17:32:10 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-15 17:33:10 -0700
commitc5501073ab629de3c5491258bf040462b873a85a (patch)
tree55a1a192225ef1830ac5f0a06aca36be01096927 /dlfcn.c
parent50f42865af91e83e0b0d9341a839deed359b1070 (diff)
downloaddlfcn-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dlfcn.c b/dlfcn.c
index b1877bd..d6c4356 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -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
392BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) 396BOOL 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 *