diff options
author | Guillem Jover <guillem@debian.org> | 2014-04-29 03:02:08 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-04-30 06:47:33 +0200 |
commit | dd0ec1036fb5fdf8b0462edf357d72d491b3c8aa (patch) | |
tree | 91b1c3de1bc35c7737e29a2b73195d3cd3935eb7 /src | |
parent | b6788715227adb30ba41b5a049d1cbfb9e3ff1d7 (diff) | |
download | dpkg-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.c | 1 | ||||
-rw-r--r-- | src/packages.c | 1 |
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); |