mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-22 17:47:38 +08:00
silence unused typedef warning in COMPILE_TIME_ASSERT
This commit is contained in:
parent
b6a573013e
commit
dba6cca973
@ -567,7 +567,7 @@ public:
|
|||||||
// of our complicated templates properly. Use some preprocessor trickery
|
// of our complicated templates properly. Use some preprocessor trickery
|
||||||
// to workaround this
|
// to workaround this
|
||||||
#ifdef __GNUC__
|
#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
|
#else
|
||||||
#if _MSC_VER >= 1600
|
#if _MSC_VER >= 1600
|
||||||
// If available use static_assert instead of weird language tricks. This
|
// If available use static_assert instead of weird language tricks. This
|
||||||
|
Loading…
Reference in New Issue
Block a user