From 9b3baf98816cf62676b5c797a01ef445f418f2a1 Mon Sep 17 00:00:00 2001 From: Geoffrey Martin-Noble Date: Wed, 25 Mar 2020 20:52:43 -0700 Subject: [PATCH] Add missing braces to if condition The indentation implies this was the intention. Noticed the issue while trying to compile our code with -Werror -Wall --- glslang/MachineIndependent/Initialize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/Initialize.cpp b/glslang/MachineIndependent/Initialize.cpp index cbcbe1ac..d2ece76c 100644 --- a/glslang/MachineIndependent/Initialize.cpp +++ b/glslang/MachineIndependent/Initialize.cpp @@ -8983,9 +8983,10 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion } break; case EShLangIntersect: - if (profile != EEsProfile && version >= 460) + if (profile != EEsProfile && version >= 460) { symbolTable.relateToOperator("reportIntersectionNV", EOpReportIntersection); symbolTable.relateToOperator("reportIntersectionEXT", EOpReportIntersection); + } break; case EShLangAnyHit: if (profile != EEsProfile && version >= 460) {