Fixed a lot of issues reported by cppcheck 1.78

This commit is contained in:
heckflosse
2017-04-08 22:41:46 +02:00
parent 73e14702dd
commit 6e55f6bab5
41 changed files with 226 additions and 254 deletions

View File

@@ -376,6 +376,9 @@ public:
v(y, x) = tmp;
}
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
}
@@ -460,6 +463,9 @@ public:
v(i, j) = v(i, x);
v(i, x) = temp;
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
void vflip ()
@@ -482,6 +488,9 @@ public:
v(i, j) = v(y, j);
v(y, j) = temp;
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
void calcHist(unsigned int *hist16)
@@ -790,6 +799,9 @@ public:
b(y, x) = tmp;
}
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
}
@@ -878,6 +890,9 @@ public:
b(i, j) = b(i, x);
b(i, x) = temp;
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
void vflip ()
@@ -908,6 +923,9 @@ public:
b(i, j) = b(y, j);
b(y, j) = tempB;
}
#ifdef _OPENMP
static_cast<void>(bigImage); // to silence cppcheck warning
#endif
}
void calcGrayscaleHist(unsigned int *hist16)