Skip to content

Commit

Permalink
Make gcc happy (-Wimplicit-fallthrough)
Browse files Browse the repository at this point in the history
  • Loading branch information
f2404 committed May 31, 2018
1 parent ac96dc3 commit cbf2e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/alpm-query.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
case 's':
pkg = get_sync_pkg (pkg);
if (!pkg) pkg = (alpm_pkg_t *) p;
// fall through
case 'r':
info = (char *) alpm_db_get_name (alpm_pkg_get_db (pkg));
break;
Expand All @@ -652,7 +653,7 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
case 'V':
pkg = get_sync_pkg (pkg);
if (!pkg) break;
// falling through
// fall through
case 'v':
info = (char *) alpm_pkg_get_version (pkg);
break;
Expand Down

0 comments on commit cbf2e3a

Please sign in to comment.