aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler/scalebit.cpp
diff options
context:
space:
mode:
authorD G Turner2019-11-17 10:11:25 +0000
committerD G Turner2019-11-17 10:11:25 +0000
commitbe56e9afed697dd580c7348e8a9467281bac3517 (patch)
tree21838ac55e5b55c495d12c03d6d0b13cc6975321 /graphics/scaler/scalebit.cpp
parentb46f07b823fbde7b7e0aadf1bbf583fb07377332 (diff)
downloadscummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.tar.gz
scummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.tar.bz2
scummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.zip
GRAPHICS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'graphics/scaler/scalebit.cpp')
-rw-r--r--graphics/scaler/scalebit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/scaler/scalebit.cpp b/graphics/scaler/scalebit.cpp
index bcba5793e2..2c79cfcd27 100644
--- a/graphics/scaler/scalebit.cpp
+++ b/graphics/scaler/scalebit.cpp
@@ -59,6 +59,7 @@ static inline void stage_scale2x(void* dst0, void* dst1, const void* src0, const
case 2: scale2x_16_def(DST(16,0), DST(16,1), SRC(16,0), SRC(16,1), SRC(16,2), pixel_per_row); break;
case 4: scale2x_32_def(DST(32,0), DST(32,1), SRC(32,0), SRC(32,1), SRC(32,2), pixel_per_row); break;
#endif
+ default: break;
}
}
@@ -70,6 +71,7 @@ static inline void stage_scale3x(void* dst0, void* dst1, void* dst2, const void*
case 1: scale3x_8_def( DST( 8,0), DST( 8,1), DST( 8,2), SRC( 8,0), SRC( 8,1), SRC( 8,2), pixel_per_row); break;
case 2: scale3x_16_def(DST(16,0), DST(16,1), DST(16,2), SRC(16,0), SRC(16,1), SRC(16,2), pixel_per_row); break;
case 4: scale3x_32_def(DST(32,0), DST(32,1), DST(32,2), SRC(32,0), SRC(32,1), SRC(32,2), pixel_per_row); break;
+ default: break;
}
}
@@ -290,6 +292,8 @@ int scale_precondition(unsigned scale, unsigned pixel, unsigned width, unsigned
if (height < 4)
return -1;
break;
+ default:
+ break;
}
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
@@ -305,6 +309,8 @@ int scale_precondition(unsigned scale, unsigned pixel, unsigned width, unsigned
if (width < 2)
return -1;
break;
+ default:
+ break;
}
#else
if (width < 2)
@@ -338,5 +344,7 @@ void scale(unsigned scale, void* void_dst, unsigned dst_slice, const void* void_
case 4:
scale4x(void_dst, dst_slice, void_src, src_slice, pixel, width, height);
break;
+ default:
+ break;
}
}