Fix Clang warnings and build failure on OSX 10.12

Kudos to Partha over at pixls.us for finding and fixing!
This commit is contained in:
Flössie
2016-11-06 17:09:27 +01:00
parent 2bf87d5c5c
commit 495c0938f4
6 changed files with 19 additions and 11 deletions

View File

@@ -598,12 +598,13 @@ std::vector<badPix> *DFManager::getBadPixels ( const std::string &mak, const std
found = true;
}
if( settings->verbose )
if( settings->verbose ) {
if(found) {
printf("%s.badpixels found\n", s.str().c_str());
} else {
printf("%s.badpixels not found\n", s.str().c_str());
}
}
}
@@ -617,12 +618,13 @@ std::vector<badPix> *DFManager::getBadPixels ( const std::string &mak, const std
found = true;
}
if( settings->verbose )
if( settings->verbose ) {
if(found) {
printf("%s.badpixels found\n", s.str().c_str());
} else {
printf("%s.badpixels not found\n", s.str().c_str());
}
}
}
if(!found) {