aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-05-18 17:51:42 +0200
committerFabian Groffen <grobian@gentoo.org>2018-05-18 17:51:42 +0200
commitc144d46a11bbac0dff31ca4278c65502da5f4b1b (patch)
tree26ae6cea4b181744a102d753198960e4a30943cb
parentadd qtegrity (diff)
downloadportage-utils-c144d46a11bbac0dff31ca4278c65502da5f4b1b.tar.gz
portage-utils-c144d46a11bbac0dff31ca4278c65502da5f4b1b.tar.bz2
portage-utils-c144d46a11bbac0dff31ca4278c65502da5f4b1b.zip
add fall through comments for gcc-7
-rw-r--r--libq/vdb.c1
-rw-r--r--qlist.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/libq/vdb.c b/libq/vdb.c
index 85f061a..fa4f6ce 100644
--- a/libq/vdb.c
+++ b/libq/vdb.c
@@ -103,6 +103,7 @@ q_vdb_filter_cat(const struct dirent *de)
case '-':
if (i)
break;
+ /* fall through */
default:
return 0;
}
diff --git a/qlist.c b/qlist.c
index 4d3a4e0..a332acc 100644
--- a/qlist.c
+++ b/qlist.c
@@ -389,7 +389,7 @@ int qlist_main(int argc, char **argv)
while ((i = GETOPT_LONG(QLIST, qlist, "")) != -1) {
switch (i) {
COMMON_GETOPTS_CASES(qlist)
- case 'a': state.all = true;
+ case 'a': state.all = true; /* fall through */
case 'I': state.just_pkgname = true; break;
case 'S': state.just_pkgname = true; ++state.show_slots; break;
case 'R': state.just_pkgname = state.show_repo = true; break;