diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 19:11:37 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 19:11:37 -0400 |
| commit | c6fb1de9547bd24a693915b758cc35499f1d949f (patch) | |
| tree | 2ab3aa7bc1477cad02c82084ecca5e0a3a57f8d0 /source/core | |
| parent | 215ce206838db63fdd310a0ababe421799011d21 (diff) | |
fixed last couple warnings under release/x64 build.
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/common.h b/source/core/common.h index 3a4543085..17161ab14 100644 --- a/source/core/common.h +++ b/source/core/common.h @@ -74,5 +74,8 @@ namespace Slang #define SLANG_RELEASE_ASSERT(VALUE) if(VALUE) {} else Slang::signalUnexpectedError("assertion failed") #define SLANG_RELEASE_EXPECT(VALUE, WHAT) if(VALUE) {} else SLANG_UNEXPECTED(WHAT) +template<typename T> void slang_use_obj(T&) {} +#define SLANG_UNREFERENCED_PARAMETER(P) slang_use_obj(P) +#define SLANG_UNREFERENCED_VARIABLE(P) slang_use_obj(P) #endif |
