Skip to content

Commit

Permalink
Add gnulib-fix-gcc7-fallthrough.diff
Browse files Browse the repository at this point in the history
As long as the code is not upstream, add it as explicit patch for the
case of gnulib refresh.
  • Loading branch information
arvidjaar committed Apr 4, 2017
1 parent 4bd4a88 commit 007f0b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions grub-core/gnulib-fix-gcc7-fallthrough.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git grub-core/gnulib/regexec.c grub-core/gnulib/regexec.c
index f632cd4..a7776f0 100644
--- grub-core/gnulib/regexec.c
+++ grub-core/gnulib/regexec.c
@@ -4099,6 +4099,9 @@ check_node_accept (const re_match_context_t *mctx, const re_token_t *node,
case OP_UTF8_PERIOD:
if (ch >= ASCII_CHARS)
return false;
+#if defined __GNUC__ && __GNUC__ >= 7
+ __attribute__ ((fallthrough));
+#endif
/* FALLTHROUGH */
#endif
case OP_PERIOD:

0 comments on commit 007f0b4

Please sign in to comment.