forked from pool/glslang
23 lines
872 B
Diff
23 lines
872 B
Diff
|
From: Jan Engelhardt <jengelh@inai.de>
|
||
|
Date: 2017-02-05 00:54:29.893127773 +0100
|
||
|
|
||
|
hlslGrammar.cpp:2333:44: warning: no return statement in function
|
||
|
returning non-void [-Wreturn-type]
|
||
|
tFinalize& operator=(tFinalize&) { }
|
||
|
|
||
|
References: https://github.com/KhronosGroup/glslang/issues/718
|
||
|
|
||
|
diff --git a/hlsl/hlslGrammar.cpp b/hlsl/hlslGrammar.cpp
|
||
|
index 6c204137..bbb96f97 100755
|
||
|
--- a/hlsl/hlslGrammar.cpp
|
||
|
+++ b/hlsl/hlslGrammar.cpp
|
||
|
@@ -2330,7 +2330,7 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
|
||
|
~tFinalize() { parseContext.finalizeFlattening(); }
|
||
|
HlslParseContext& parseContext;
|
||
|
private:
|
||
|
- tFinalize& operator=(tFinalize&) { }
|
||
|
+ tFinalize &operator=(tFinalize &) { return *this; }
|
||
|
} finalize(parseContext);
|
||
|
|
||
|
// Initialize the flattening accumulation data, so we can track data across multiple bracket or
|