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/slang/lexer.cpp | 1 + source/slang/lower-to-ir.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source/slang') diff --git a/source/slang/lexer.cpp b/source/slang/lexer.cpp index 11c70d1f5..3f8709a9d 100644 --- a/source/slang/lexer.cpp +++ b/source/slang/lexer.cpp @@ -808,6 +808,7 @@ namespace Slang char const* cursor = token.Content.begin(); char const* end = token.Content.end(); + SLANG_UNREFERENCED_VARIABLE(end); auto quote = *cursor++; SLANG_ASSERT(quote == '\'' || quote == '"'); diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp index 0c933374b..a659326e4 100644 --- a/source/slang/lower-to-ir.cpp +++ b/source/slang/lower-to-ir.cpp @@ -362,7 +362,7 @@ LoweredValInfo emitCompoundAssignOp( IRValue* const* args) { auto builder = context->irBuilder; - + SLANG_UNREFERENCED_PARAMETER(argCount); assert(argCount == 2); auto leftPtr = args[0]; auto rightVal = args[1]; @@ -412,7 +412,7 @@ LoweredValInfo emitPreOp( IRValue* const* args) { auto builder = context->irBuilder; - + SLANG_UNREFERENCED_PARAMETER(argCount); assert(argCount == 1); auto argPtr = args[0]; @@ -436,7 +436,7 @@ LoweredValInfo emitPostOp( IRValue* const* args) { auto builder = context->irBuilder; - + SLANG_UNREFERENCED_PARAMETER(argCount); assert(argCount == 1); auto argPtr = args[0]; -- cgit v1.2.3