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

@@ -151,7 +151,6 @@ void CLASS copy_line_to_xtrans (struct fuji_compressed_block* info, int cur_line
ushort *lineBufB[3];
ushort *lineBufG[6];
ushort *lineBufR[3];
unsigned pixel_count;
ushort* line_buf;
int index;
@@ -169,7 +168,7 @@ void CLASS copy_line_to_xtrans (struct fuji_compressed_block* info, int cur_line
}
while (row_count < 6) {
pixel_count = 0;
unsigned pixel_count = 0;
while (static_cast<int>(pixel_count) < cur_block_width) {
switch (xtrans_abs[row_count][ (pixel_count % 6)]) {
@@ -203,7 +202,6 @@ void CLASS copy_line_to_bayer (struct fuji_compressed_block *info, int cur_line,
ushort *lineBufB[3];
ushort *lineBufG[6];
ushort *lineBufR[3];
unsigned pixel_count;
ushort *line_buf;
int fuji_bayer[2][2];
@@ -227,7 +225,7 @@ void CLASS copy_line_to_bayer (struct fuji_compressed_block *info, int cur_line,
}
while (row_count < 6) {
pixel_count = 0;
unsigned pixel_count = 0;
while (static_cast<int>(pixel_count) < cur_block_width) {
switch (fuji_bayer[row_count & 1][pixel_count & 1]) {