From: Bruno Haible Date: Thu, 7 Sep 2023 00:25:30 +0000 (+0200) Subject: argp: Fix clang -Wextra-semi-stmt warning. X-Git-Tag: v1.0~808 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6eb0ce984872cedda08d55e3967d5383bed16fcd;p=gnulib.git argp: Fix clang -Wextra-semi-stmt warning. * lib/argp-help.c (SKIPWS): Remove trailing semicolon. --- diff --git a/ChangeLog b/ChangeLog index 3d2ee1effc..359cd0aca3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-09-06 Bruno Haible + + argp: Fix clang -Wextra-semi-stmt warning. + * lib/argp-help.c (SKIPWS): Remove trailing semicolon. + 2023-09-06 Bruno Haible doc: Refine documentation of MSVC support for shared libraries. diff --git a/lib/argp-help.c b/lib/argp-help.c index 15d94993c1..7141edc74e 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -165,7 +165,7 @@ fill_in_uparams (const struct argp_state *state) const char *var = getenv ("ARGP_HELP_FMT"); struct uparams new_params = uparams; -#define SKIPWS(p) do { while (isspace ((unsigned char) *p)) p++; } while (0); +#define SKIPWS(p) do { while (isspace ((unsigned char) *p)) p++; } while (0) if (var) {