gnulib-fix-gcc7-fallthrough.diff 472 B

123456789101112131415
  1. diff --git grub-core/gnulib/regexec.c grub-core/gnulib/regexec.c
  2. index f632cd4..a7776f0 100644
  3. --- grub-core/gnulib/regexec.c
  4. +++ grub-core/gnulib/regexec.c
  5. @@ -4099,6 +4099,9 @@ check_node_accept (const re_match_context_t *mctx, const re_token_t *node,
  6. case OP_UTF8_PERIOD:
  7. if (ch >= ASCII_CHARS)
  8. return false;
  9. +#if defined __GNUC__ && __GNUC__ >= 7
  10. + __attribute__ ((fallthrough));
  11. +#endif
  12. /* FALLTHROUGH */
  13. #endif
  14. case OP_PERIOD: