From dd0ec1036fb5fdf8b0462edf357d72d491b3c8aa Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 29 Apr 2014 03:02:08 +0200 Subject: 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 --- src/configure.c | 1 + src/packages.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3