Fixes a lot of warnings and move math enums to enum classes
This commit is contained in:
@@ -46,12 +46,12 @@ namespace Nz
|
||||
currentFunction->calledFunctions.UnboundedSet(std::get<std::size_t>(node.targetFunction));
|
||||
}
|
||||
|
||||
void Visit(ShaderAst::ConditionalExpression& node) override
|
||||
void Visit(ShaderAst::ConditionalExpression& /*node*/) override
|
||||
{
|
||||
throw std::runtime_error("unexpected conditional expression, is shader sanitized?");
|
||||
}
|
||||
|
||||
void Visit(ShaderAst::ConditionalStatement& node) override
|
||||
void Visit(ShaderAst::ConditionalStatement& /*node*/) override
|
||||
{
|
||||
throw std::runtime_error("unexpected conditional statement, is shader sanitized?");
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Nz
|
||||
unsigned int indentLevel = 0;
|
||||
};
|
||||
|
||||
std::string LangWriter::Generate(ShaderAst::Statement& shader, const States& states)
|
||||
std::string LangWriter::Generate(ShaderAst::Statement& shader, const States& /*states*/)
|
||||
{
|
||||
State state;
|
||||
m_currentState = &state;
|
||||
|
||||
Reference in New Issue
Block a user