Skip to content

Commit

Permalink
Merge pull request KhronosGroup#2669 from sudonatalie/remove-unused-var
Browse files Browse the repository at this point in the history
Remove unused variable Num_string_literal_EXTs
  • Loading branch information
greg-lunarg authored Jun 17, 2021
2 parents e74b35f + c5f30ff commit b38100f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion glslang/MachineIndependent/preprocessor/PpScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b38100f

Please sign in to comment.