Coverity: Unchecked return value
This commit is contained in:
@@ -95,11 +95,11 @@ void pagesize(string & page_template, int dims[4], int block[4])
|
||||
{
|
||||
if (line.find("<!-- Working space") != string::npos)
|
||||
{
|
||||
sscanf(line.c_str(), "%*s %*s %*s %d %d %d %d", &dims[0], &dims[1], &dims[2], &dims[3]); //eg " <!-- Working space 10 10 410 287 -->"
|
||||
(void)sscanf(line.c_str(), "%*s %*s %*s %d %d %d %d", &dims[0], &dims[1], &dims[2], &dims[3]); //eg " <!-- Working space 10 10 410 287 -->"
|
||||
getline (file,line);
|
||||
|
||||
if (line.find("<!-- Title block") != string::npos)
|
||||
sscanf(line.c_str(), "%*s %*s %*s %d %d %d %d", &t0, &t1, &t2, &t3); //eg " <!-- Working space 10 10 410 287 -->"
|
||||
(void)sscanf(line.c_str(), "%*s %*s %*s %d %d %d %d", &t0, &t1, &t2, &t3); //eg " <!-- Working space 10 10 410 287 -->"
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ void ViewProviderFemPostObject::attach(App::DocumentObject *pcObj)
|
||||
addDisplayMaskMode(m_seperator, "Default");
|
||||
setDisplayMaskMode("Default");
|
||||
|
||||
setupPipeline();
|
||||
(void)setupPipeline();
|
||||
}
|
||||
|
||||
SoSeparator* ViewProviderFemPostObject::getFrontRoot(void) const {
|
||||
|
||||
Reference in New Issue
Block a user