mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Fixed GCC warnings.
This commit is contained in:
@@ -80,6 +80,7 @@ namespace bx
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
return (void*)::LoadLibraryA(_filePath);
|
||||
#elif BX_PLATFORM_NACL
|
||||
BX_UNUSED(_filePath);
|
||||
return NULL;
|
||||
#else
|
||||
return ::dlopen(_filePath, RTLD_LOCAL|RTLD_LAZY);
|
||||
@@ -91,6 +92,7 @@ namespace bx
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
::FreeLibrary( (HMODULE)_handle);
|
||||
#elif BX_PLATFORM_NACL
|
||||
BX_UNUSED(_handle);
|
||||
#else
|
||||
::dlclose(_handle);
|
||||
#endif // BX_PLATFORM_
|
||||
@@ -101,6 +103,7 @@ namespace bx
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
return (void*)::GetProcAddress( (HMODULE)_handle, _symbol);
|
||||
#elif BX_PLATFORM_NACL
|
||||
BX_UNUSED(_handle, _symbol);
|
||||
return NULL;
|
||||
#else
|
||||
return ::dlsym(_handle, _symbol);
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace bx
|
||||
bool wait(int32_t _msecs = -1)
|
||||
{
|
||||
# if BX_PLATFORM_NACL || BX_PLATFORM_OSX
|
||||
BX_CHECK(-1 == _msecs, "NaCl and OSX don't support sem_timedwait at this moment.");
|
||||
BX_CHECK(-1 == _msecs, "NaCl and OSX don't support sem_timedwait at this moment."); BX_UNUSED(_msecs);
|
||||
return 0 == sem_wait(&m_handle);
|
||||
# else
|
||||
if (0 > _msecs)
|
||||
|
||||
Reference in New Issue
Block a user