2
0
Эх сурвалжийг харах

Merge pull request #675 from BeamNG/fix_assertfatal_release_performance

Fix assertfatal/TORQUE_UNUSED release performance
Thomas Fischer 11 жил өмнө
parent
commit
ef4e7ec975

+ 1 - 1
Engine/source/platform/types.h

@@ -40,7 +40,7 @@ typedef double             F64;     ///< Compiler independent 64-bit float
 
 
 struct EmptyType {};             ///< "Null" type used by templates
 struct EmptyType {};             ///< "Null" type used by templates
 
 
-#define TORQUE_UNUSED(var) (void)(var)
+#define TORQUE_UNUSED(var) (void)sizeof(var)
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 //------------------------------------- String Types
 //------------------------------------- String Types