From 6eb0ce984872cedda08d55e3967d5383bed16fcd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 7 Sep 2023 02:25:30 +0200 Subject: [PATCH] argp: Fix clang -Wextra-semi-stmt warning. * lib/argp-help.c (SKIPWS): Remove trailing semicolon. --- ChangeLog | 5 +++++ lib/argp-help.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.39.5