From c4ad75e5e710452065c2e196a73c12c6b33148ee 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 db74210e5e..e976a5396e 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-05 Bruno Haible unigbrk/u8-grapheme-{next,prev} tests: Fix gcc -Wformat warnings. diff --git a/lib/argp-help.c b/lib/argp-help.c index 7a277ebf13..9a663d547b 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