1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-22 09:38:56 +08:00

silence unused typedef warning in COMPILE_TIME_ASSERT

This commit is contained in:
Maksim Smolin 2019-01-22 17:16:30 -08:00
parent b6a573013e
commit dba6cca973

View File

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