Browse Source

Fixed GCC warnings.

bkaradzic 12 years ago
parent
commit
c62781e9ec
2 changed files with 4 additions and 1 deletions
  1. 3 0
      include/bx/os.h
  2. 1 1
      include/bx/sem.h

+ 3 - 0
include/bx/os.h

@@ -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);

+ 1 - 1
include/bx/sem.h

@@ -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)