aboutsummaryrefslogtreecommitdiff
path: root/image/jpeg.cpp
diff options
context:
space:
mode:
authorD G Turner2019-11-30 22:08:44 +0000
committerD G Turner2019-11-30 22:08:44 +0000
commitaee09409e8b30dbd8ea10c9190b85037fe8458c9 (patch)
tree2cf8b40cca8d94d21985b60dea7bcf2443b6f7e7 /image/jpeg.cpp
parent88761ea49ce5244dc33a0784bbfba702f82d3241 (diff)
downloadscummvm-rg350-aee09409e8b30dbd8ea10c9190b85037fe8458c9.tar.gz
scummvm-rg350-aee09409e8b30dbd8ea10c9190b85037fe8458c9.tar.bz2
scummvm-rg350-aee09409e8b30dbd8ea10c9190b85037fe8458c9.zip
IMAGE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'image/jpeg.cpp')
-rw-r--r--image/jpeg.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/image/jpeg.cpp b/image/jpeg.cpp
index 2975cb1342..89e40ddf05 100644
--- a/image/jpeg.cpp
+++ b/image/jpeg.cpp
@@ -268,6 +268,8 @@ bool JPEGDecoder::loadStream(Common::SeekableReadStream &stream) {
case kColorSpaceYUV:
cinfo.out_color_space = JCS_YCbCr;
break;
+ default:
+ break;
}
// Actually start decompressing the image
@@ -290,6 +292,8 @@ bool JPEGDecoder::loadStream(Common::SeekableReadStream &stream) {
// This is pretty ugly since our PixelFormat cannot express YUV...
_surface.create(cinfo.output_width, cinfo.output_height, Graphics::PixelFormat(3, 0, 0, 0, 0, 0, 0, 0, 0));
break;
+ default:
+ break;
}
// Allocate buffer for one scanline