From 3acbe8145c60f4d1e7a180b4602a94269a489df5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 27 Apr 2023 12:36:59 +0800 Subject: Fix most of the disabled warnings on gcc/clang (#2839) --- source/slang/slang-emit-cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-emit-cpp.cpp') diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 83f487cb9..df6ab4901 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -889,7 +889,7 @@ void CPPSourceEmitter::emitSimpleFuncImpl(IRFunc* func) } // We start by emitting the result type and function name. // - if (IREntryPointDecoration* entryPointDecor = func->findDecoration()) + if (IREntryPointDecoration* const entryPointDecor = func->findDecoration()) { // Note: we currently emit multiple functions to represent an entry point // on CPU/CUDA, and these all bottleneck through the actual `IRFunc` -- cgit v1.2.3