aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-11-30 23:57:47 +0000
committerD G Turner2019-11-30 23:57:47 +0000
commit058fa35d6fa3b36b801750e2a128fdd9b766379a (patch)
tree35430645193f3ebf19c2c6657dade01fb351db73
parentc2149c042e03930fea0eaed252a630ca63ec6af6 (diff)
downloadscummvm-rg350-058fa35d6fa3b36b801750e2a128fdd9b766379a.tar.gz
scummvm-rg350-058fa35d6fa3b36b801750e2a128fdd9b766379a.tar.bz2
scummvm-rg350-058fa35d6fa3b36b801750e2a128fdd9b766379a.zip
SWORD25: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r--engines/sword25/gfx/image/art.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/art.cpp b/engines/sword25/gfx/image/art.cpp
index 454c7e1047..4296ec6fdb 100644
--- a/engines/sword25/gfx/image/art.cpp
+++ b/engines/sword25/gfx/image/art.cpp
@@ -488,6 +488,8 @@ ArtVpath *art_bez_path_to_vec(const ArtBpath *bez, double flatness) {
x = bez[bez_index].x3;
y = bez[bez_index].y3;
break;
+ default:
+ break;
}
} while (bez[bez_index++].code != ART_END);
return vec;
@@ -768,6 +770,8 @@ static void render_cap(ArtVpath **p_result, int *pn_result, int *pn_result_max,
vpath[i1].x + dlx0 - dly0,
vpath[i1].y + dly0 + dlx0);
break;
+ default:
+ break;
}
}