Clang: reduce warnings
This commit is contained in:
parent
2148538fac
commit
12a0edfa50
@ -24,7 +24,7 @@
|
|||||||
void
|
void
|
||||||
operator>>( const YAML::Node& node, QStringList& v )
|
operator>>( const YAML::Node& node, QStringList& v )
|
||||||
{
|
{
|
||||||
for ( int i = 0; i < node.size(); ++i )
|
for ( size_t i = 0; i < node.size(); ++i )
|
||||||
{
|
{
|
||||||
v.append( QString::fromStdString( node[ i ].as< std::string >() ) );
|
v.append( QString::fromStdString( node[ i ].as< std::string >() ) );
|
||||||
}
|
}
|
||||||
@ -51,9 +51,11 @@ yamlToVariant( const YAML::Node& node )
|
|||||||
return yamlMapToVariant( node );
|
return yamlMapToVariant( node );
|
||||||
|
|
||||||
case YAML::NodeType::Null:
|
case YAML::NodeType::Null:
|
||||||
|
case YAML::NodeType::Undefined:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTREACHED
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user