Merge branch 'master' into patch-1
commit
c50b87fa6c
|
@ -190,7 +190,7 @@ Scope::Scope(Parser& parser,bool topLevel)
|
||||||
}
|
}
|
||||||
|
|
||||||
auto *element = new_Element(*n, parser);
|
auto *element = new_Element(*n, parser);
|
||||||
|
|
||||||
// Element() should stop at the next Key token (or right after a Close token)
|
// Element() should stop at the next Key token (or right after a Close token)
|
||||||
n = parser.CurrentToken();
|
n = parser.CurrentToken();
|
||||||
if (n == nullptr) {
|
if (n == nullptr) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ bool X3DXmlHelper::getColor3DAttribute(XmlNode &node, const char *attributeName,
|
||||||
tokenize<std::string>(val, values, " ");
|
tokenize<std::string>(val, values, " ");
|
||||||
if (values.size() != 3) {
|
if (values.size() != 3) {
|
||||||
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
auto it = values.begin();
|
auto it = values.begin();
|
||||||
color.r = stof(*it++);
|
color.r = stof(*it++);
|
||||||
|
@ -30,7 +29,6 @@ bool X3DXmlHelper::getVector2DAttribute(XmlNode &node, const char *attributeName
|
||||||
tokenize<std::string>(val, values, " ");
|
tokenize<std::string>(val, values, " ");
|
||||||
if (values.size() != 2) {
|
if (values.size() != 2) {
|
||||||
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
auto it = values.begin();
|
auto it = values.begin();
|
||||||
color.x = stof(*it++);
|
color.x = stof(*it++);
|
||||||
|
@ -47,7 +45,6 @@ bool X3DXmlHelper::getVector3DAttribute(XmlNode &node, const char *attributeName
|
||||||
tokenize<std::string>(val, values, " ");
|
tokenize<std::string>(val, values, " ");
|
||||||
if (values.size() != 3) {
|
if (values.size() != 3) {
|
||||||
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
Throw_ConvertFail_Str2ArrF(node.name(), attributeName);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
auto it = values.begin();
|
auto it = values.begin();
|
||||||
color.x = stof(*it++);
|
color.x = stof(*it++);
|
||||||
|
|
|
@ -1234,14 +1234,11 @@ IF (ASSIMP_WARNINGS_AS_ERRORS)
|
||||||
-Wno-header-hygiene
|
-Wno-header-hygiene
|
||||||
-Wno-tautological-value-range-compare
|
-Wno-tautological-value-range-compare
|
||||||
-Wno-tautological-type-limit-compare
|
-Wno-tautological-type-limit-compare
|
||||||
-Wno-missing-noreturn
|
|
||||||
-Wno-missing-variable-declarations
|
-Wno-missing-variable-declarations
|
||||||
-Wno-extra-semi
|
-Wno-extra-semi
|
||||||
-Wno-nonportable-system-include-path
|
-Wno-nonportable-system-include-path
|
||||||
-Wno-undefined-reinterpret-cast
|
-Wno-undefined-reinterpret-cast
|
||||||
-Wno-shift-sign-overflow
|
-Wno-shift-sign-overflow
|
||||||
-Wno-deprecated-copy-with-user-provided-dtor
|
|
||||||
-Wno-deprecated-copy-with-dtor
|
|
||||||
-Wno-deprecated
|
-Wno-deprecated
|
||||||
-Wno-format-nonliteral
|
-Wno-format-nonliteral
|
||||||
-Wno-comma
|
-Wno-comma
|
||||||
|
|
Loading…
Reference in New Issue