From dba6cca973d0a7335bb1e7c223bfc8dcbc9271ec Mon Sep 17 00:00:00 2001 From: Maksim Smolin Date: Tue, 22 Jan 2019 17:16:30 -0800 Subject: [PATCH] silence unused typedef warning in COMPILE_TIME_ASSERT --- public/tier0/dbg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index 1e9b7225..561992e0 100644 --- a/public/tier0/dbg.h +++ b/public/tier0/dbg.h @@ -567,7 +567,7 @@ public: // of our complicated templates properly. Use some preprocessor trickery // to workaround this #ifdef __GNUC__ - #define COMPILE_TIME_ASSERT( pred ) typedef int UNIQUE_ID[ (pred) ? 1 : -1 ] + #define COMPILE_TIME_ASSERT( pred ) typedef int UNIQUE_ID[ (pred) ? 1 : -1 ] __attribute__((unused)) #else #if _MSC_VER >= 1600 // If available use static_assert instead of weird language tricks. This