Xibo.Wang fbf3f4b4d7 maint: avoid warnings from GCC8
backport from https://git.savannah.gnu.org/gitweb/?p=patch.git;a=commit;h=ae81be0

I configured with --enable-gcc-warnings and bleeding-edge gcc
(version 8.0.1 20180406) and hit some warning-escalated-to-errors.
This fixes them:
* src/common.h (FALLTHROUGH): Define.
* src/patch.c (abort_hunk_context): Use FALLTHROUGH macro in place of
a comment.  This avoids a warning from -Wimplicit-fallthrough=.
* src/pch.c (do_ed_script): Add otherwise unnecessary initialization
to avoid warning from -Wmaybe-uninitialized.
(another_hunk): Use FALLTHROUGH macro here, too, twice.

Signed-off-by: Xibo.Wang <wangxb12@chinatelecom.cn>
2022-12-29 17:05:05 +08:00
2019-09-30 11:11:23 -04:00
2020-02-03 16:29:15 +08:00
2019-09-30 11:11:23 -04:00
2019-09-30 11:11:23 -04:00
2020-03-18 15:51:24 +08:00
2022-12-29 17:05:05 +08:00
2020-06-18 16:02:56 +08:00
Description
No description provided
860 KiB
Languages
Diff 100%