From: LoopDawg Date: Sat, 29 Jul 2017 00:41:53 +0000 (-0600) Subject: HLSL: Non-functional: warning fix, remove unused member. X-Git-Tag: upstream/11.4.0~1057^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a3cef10dcc9f2c8fc9a20e388ec62805253957d;p=platform%2Fupstream%2Fglslang.git HLSL: Non-functional: warning fix, remove unused member. Two non-functional changes: 1. Remove flattenLevel, which is unneeded since at or around d1be7545c6a23657587dfe3bc4b149c91290a66f. 2. Fix build warining about unused variable in executeInitializer. --- diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp index 84d0fdc..10ab88c 100755 --- a/hlsl/hlslParseHelper.cpp +++ b/hlsl/hlslParseHelper.cpp @@ -7553,7 +7553,6 @@ TIntermNode* HlslParseContext::executeInitializer(const TSourceLoc& loc, TInterm TType skeletalType; skeletalType.shallowCopy(variable->getType()); skeletalType.getQualifier().makeTemporary(); - TIntermAggregate* initializerList = nullptr; if (initializer->getAsAggregate() && initializer->getAsAggregate()->getOp() == EOpNull) initializer = convertInitializerList(loc, skeletalType, initializer, nullptr); if (initializer == nullptr) { diff --git a/hlsl/hlslParseHelper.h b/hlsl/hlslParseHelper.h index 78a656b..69f0350 100755 --- a/hlsl/hlslParseHelper.h +++ b/hlsl/hlslParseHelper.h @@ -374,7 +374,6 @@ protected: TVector ioArraySymbolResizeList; TMap flattenMap; - TVector flattenLevel; // nested postfix operator level for flattening // IO-type map. Maps a pure symbol-table form of a structure-member list into // each of the (up to) three kinds of IO, as each as different allowed decorations,