Skip to content

Commit cbf2e3a

Browse files
committed
Make gcc happy (-Wimplicit-fallthrough)
1 parent ac96dc3 commit cbf2e3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/alpm-query.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
630630
case 's':
631631
pkg = get_sync_pkg (pkg);
632632
if (!pkg) pkg = (alpm_pkg_t *) p;
633+
// fall through
633634
case 'r':
634635
info = (char *) alpm_db_get_name (alpm_pkg_get_db (pkg));
635636
break;
@@ -652,7 +653,7 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
652653
case 'V':
653654
pkg = get_sync_pkg (pkg);
654655
if (!pkg) break;
655-
// falling through
656+
// fall through
656657
case 'v':
657658
info = (char *) alpm_pkg_get_version (pkg);
658659
break;

0 commit comments

Comments
 (0)