summaryrefslogtreecommitdiffstats
path: root/Graphics/HLSL2GLSLConverterLib
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-01-19 17:44:57 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-01-19 17:44:57 +0000
commit65b88200aae28dcd4b3e48672126bc7556d7bb49 (patch)
tree98d3cacead7e6e9824a0e5b04999d4b70543be28 /Graphics/HLSL2GLSLConverterLib
parentEnabled MacOS build (diff)
downloadDiligentCore-65b88200aae28dcd4b3e48672126bc7556d7bb49.tar.gz
DiligentCore-65b88200aae28dcd4b3e48672126bc7556d7bb49.zip
Fixed some clang compiler warnings
Diffstat (limited to 'Graphics/HLSL2GLSLConverterLib')
-rw-r--r--Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
index cdb8084a..78bc255b 100644
--- a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
+++ b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
@@ -1425,7 +1425,6 @@ void HLSL2GLSLConverterImpl::ConversionStream::ProcessStructuredBuffer(TokenList
Token->Literal = "layout(std140) buffer";
// buffer<DataType> g_Data;
// ^
- auto StructuredBftToken = Token;
++Token;
// buffer<DataType> g_Data;
@@ -3590,7 +3589,7 @@ void HLSL2GLSLConverterImpl::ConversionStream::ProcessHullShaderArguments( Token
if (ConstFuncIt == Attributes.end())
LOG_ERROR_AND_THROW( "Hull shader patch constant function is not specified. Use \"patchconstantfunc\" attribute" );
- auto MaxTessFactorIt = Attributes.find("maxtessfactor");
+ //auto MaxTessFactorIt = Attributes.find("maxtessfactor");
auto NumControlPointsIt = Attributes.find("outputcontrolpoints");
if(NumControlPointsIt == Attributes.end())
LOG_ERROR_AND_THROW( "Number of output control points is not specified. Use \"outputcontrolpoints\" attribute" );
@@ -4144,7 +4143,6 @@ void HLSL2GLSLConverterImpl::ConversionStream::RemoveSemanticsFromBlock(TokenLis
// ^
if( tkn->Type == TokenType::Identifier )
{
- auto SemanticToken = tkn;
++tkn;
// float4 Pos : POSITION;
// ^