Skip to content

Commit

Permalink
XMLSchema::load(): fix cppcheck warning 'Statements following return,…
Browse files Browse the repository at this point in the history
… break, continue, goto or throw will never be executed' (#1953)
  • Loading branch information
rouault authored and abellgithub committed Apr 22, 2018
1 parent 9eb8c5a commit 9ea259c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdal/XMLSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ bool XMLSchema::load(xmlDocPtr doc)
xmlChar* n = xmlGetProp(properties, (const xmlChar*) "value");
if (!n)
{
return false;
std::cerr << "Unable to fetch minimum value.\n";
return false;
}
dim.m_min = std::atof((const char*)n);
xmlFree(n);
Expand Down

0 comments on commit 9ea259c

Please sign in to comment.