From c6fb1de9547bd24a693915b758cc35499f1d949f Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 19:11:37 -0400 Subject: fixed last couple warnings under release/x64 build. --- source/core/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/core') 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 void slang_use_obj(T&) {} +#define SLANG_UNREFERENCED_PARAMETER(P) slang_use_obj(P) +#define SLANG_UNREFERENCED_VARIABLE(P) slang_use_obj(P) #endif -- cgit v1.2.3