From c5f30ff6febcf1c0574abe4fe15f9d962bc83a1c Mon Sep 17 00:00:00 2001 From: Natalie Chouinard Date: Thu, 17 Jun 2021 11:10:10 -0700 Subject: [PATCH] Remove unused variable Num_string_literal_EXTs Remove an unused variable that causes build failures in downstream repository. --- glslang/MachineIndependent/preprocessor/PpScanner.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/glslang/MachineIndependent/preprocessor/PpScanner.cpp b/glslang/MachineIndependent/preprocessor/PpScanner.cpp index ac5bfafaba..ad11792002 100644 --- a/glslang/MachineIndependent/preprocessor/PpScanner.cpp +++ b/glslang/MachineIndependent/preprocessor/PpScanner.cpp @@ -1192,7 +1192,6 @@ int TPpContext::tokenize(TPpToken& ppToken) // GLSL allows string literals with GL_EXT_debug_printf. if (ifdepth == 0 && parseContext.intermediate.getSource() != EShSourceHlsl) { const char* const string_literal_EXTs[] = { E_GL_EXT_debug_printf, E_GL_EXT_spirv_intrinsics }; - const int Num_string_literal_EXTs = sizeof(string_literal_EXTs) / sizeof(string_literal_EXTs[0]); parseContext.requireExtensions(ppToken.loc, 2, string_literal_EXTs, "string literal"); if (!parseContext.extensionTurnedOn(E_GL_EXT_debug_printf) && !parseContext.extensionTurnedOn(E_GL_EXT_spirv_intrinsics))