summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-04-29 03:02:08 +0200
committerGuillem Jover <guillem@debian.org>2014-04-30 06:47:33 +0200
commitdd0ec1036fb5fdf8b0462edf357d72d491b3c8aa (patch)
tree91b1c3de1bc35c7737e29a2b73195d3cd3935eb7 /src
parentb6788715227adb30ba41b5a049d1cbfb9e3ff1d7 (diff)
downloaddpkg-dd0ec1036fb5fdf8b0462edf357d72d491b3c8aa.tar.gz
dpkg: Annotate case statements that fall through with a comment
Be explicit, so that code readers or static analyzers do not get confused. Warned-by: coverity
Diffstat (limited to 'src')
-rw-r--r--src/configure.c1
-rw-r--r--src/packages.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/configure.c b/src/configure.c
index cc6caab68..1f852e6f4 100644
--- a/src/configure.c
+++ b/src/configure.c
@@ -504,6 +504,7 @@ deferred_configure_conffile(struct pkginfo *pkg, struct conffile *conff)
case cfo_install:
printf(_("Installing new version of config file %s ...\n"),
usenode->name);
+ /* Fall through. */
case cfo_newconff:
strcpy(cdr2rest, DPKGNEWEXT);
trig_path_activate(usenode, pkg);
diff --git a/src/packages.c b/src/packages.c
index c063dcbee..5fc575218 100644
--- a/src/packages.c
+++ b/src/packages.c
@@ -632,6 +632,7 @@ dependencies_ok(struct pkginfo *pkg, struct pkginfo *removing,
case found_none:
anycannotfixbytrig = true;
ok = dep_check_halt;
+ /* Fall through. */
case found_forced:
varbuf_add_str(aemsgs, " ");
varbuf_add_pkgbin_name(aemsgs, pkg, &pkg->installed, pnaw_nonambig);