Merge pull request #4176 from Beep6581/extraclean

get rt cleaner when built using -Wextra #4155
This commit is contained in:
Ingo Weyrich
2017-11-11 18:06:00 +01:00
committed by GitHub
57 changed files with 483 additions and 1404 deletions

View File

@@ -788,6 +788,10 @@ void ImProcFunctions::transformGeneral(ImProcFunctions::TransformMode mode, Imag
bool enableLCPDist = false;
bool enableCA = false;
#ifdef __GNUC__ // silence warning
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
switch (mode) {
case ImProcFunctions::TRANSFORM_HIGH_QUALITY_FULLIMAGE: {
enableLCPCA = pLCPMap && params->lensProf.useCA && pLCPMap->isCACorrectionAvailable();
@@ -806,6 +810,9 @@ void ImProcFunctions::transformGeneral(ImProcFunctions::TransformMode mode, Imag
break;
}
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
if (enableLCPCA) {
enableLCPDist = false;