diff --git a/include/bx/platform.h b/include/bx/platform.h index 02a8004..a193a51 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -341,8 +341,10 @@ #if BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS && BX_COMPILER_MSVC # pragma warning(error:4062) // ENABLE warning C4062: enumerator'...' in switch of enum '...' is not handled +# pragma warning(error:4100) // ENABLE warning C4100: '' : unreferenced formal parameter +# pragma warning(error:4189) // ENABLE warning C4189: '' : local variable is initialized but not referenced # pragma warning(error:4121) // ENABLE warning C4121: 'symbol' : alignment of a member was sensitive to packing -//# pragma warning(error:4127) // ENABLE warning C4127: conditional expression is constant +# pragma warning(error:4127) // ENABLE warning C4127: conditional expression is constant # pragma warning(error:4130) // ENABLE warning C4130: 'operator' : logical operation on address of string constant # pragma warning(error:4239) // ENABLE warning C4239: nonstandard extension used : 'argument' : conversion from '*' to '* &' A non-const reference may only be bound to an lvalue //# pragma warning(error:4244) // ENABLE warning C4244: 'argument' : conversion from 'type1' to 'type2', possible loss of data @@ -350,13 +352,12 @@ # pragma warning(error:4263) // ENABLE warning C4263: 'function' : member function does not override any base class virtual member function # pragma warning(error:4265) // ENABLE warning C4265: class has virtual functions, but destructor is not virtual # pragma warning(error:4431) // ENABLE warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int +# pragma warning(error:4505) // ENABLE warning C4505: '' : unreferenced local function has been removed # pragma warning(error:4545) // ENABLE warning C4545: expression before comma evaluates to a function which is missing an argument list # pragma warning(error:4549) // ENABLE warning C4549: 'operator' : operator before comma has no effect; did you intend 'operator'? # pragma warning(error:4701) // ENABLE warning C4701: potentially uninitialized local variable 'name' used # pragma warning(error:4706) // ENABLE warning C4706: assignment within conditional expression -# pragma warning(error:4100) // ENABLE warning C4100: '' : unreferenced formal parameter -# pragma warning(error:4189) // ENABLE warning C4189: '' : local variable is initialized but not referenced -# pragma warning(error:4505) // ENABLE warning C4505: '' : unreferenced local function has been removed +# pragma warning(error:4800) // ENABLE warning C4800: '': forcing value to bool 'true' or 'false' (performance warning) #endif // BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS && BX_COMPILER_MSVC #endif // BX_PLATFORM_H_HEADER_GUARD