From 9487ab6b5f0f66019c1e910f17f7eb3d6dc625c2 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 29 Nov 2013 22:23:04 -0800 Subject: [PATCH] Fixed GCC warnings. --- examples/common/entry/entry_nacl.cpp | 5 +++++ src/glcontext_ppapi.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/examples/common/entry/entry_nacl.cpp b/examples/common/entry/entry_nacl.cpp index a5238cce2..73f16fd0b 100644 --- a/examples/common/entry/entry_nacl.cpp +++ b/examples/common/entry/entry_nacl.cpp @@ -53,10 +53,12 @@ namespace entry void release(const Event* _event) { + BX_UNUSED(_event); } void setWindowSize(uint32_t _width, uint32_t _height) { + BX_UNUSED(_width, _height); } void toggleWindowFrame() @@ -65,6 +67,7 @@ namespace entry void setMouseLock(bool _lock) { + BX_UNUSED(_lock); } template @@ -125,6 +128,7 @@ namespace entry static void naclInstanceDidDestroy(PP_Instance _instance) { + BX_UNUSED(_instance); delete s_ctx; } @@ -166,6 +170,7 @@ PP_EXPORT const void* PPP_GetInterface(const char* _name) PP_EXPORT int32_t PPP_InitializeModule(PP_Module _module, PPB_GetInterface _interface) { + BX_UNUSED(_module); bool result = true; result &= initializeInterface(_interface, PPB_CORE_INTERFACE, g_coreInterface); result &= initializeInterface(_interface, PPB_GRAPHICS_3D_INTERFACE, g_graphicsInterface); diff --git a/src/glcontext_ppapi.cpp b/src/glcontext_ppapi.cpp index 19c9f38a0..80ad8087f 100644 --- a/src/glcontext_ppapi.cpp +++ b/src/glcontext_ppapi.cpp @@ -134,6 +134,7 @@ namespace bgfx void GlContext::create(uint32_t _width, uint32_t _height) { + BX_UNUSED(_width, _height); BX_TRACE("GlContext::create"); }