]> Savannah Git Hosting - gnulib.git/commitdiff
argp: Fix clang -Wextra-semi-stmt warning.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Sep 2023 00:25:30 +0000 (02:25 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 7 Sep 2023 00:25:30 +0000 (02:25 +0200)
* lib/argp-help.c (SKIPWS): Remove trailing semicolon.

ChangeLog
lib/argp-help.c

index 3d2ee1effc7e288a5e58ed63c62fbc8d52108d91..359cd0aca35ebb7b8b5b94f62cddfa2e6a976ab2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-09-06  Bruno Haible  <bruno@clisp.org>
+
+       argp: Fix clang -Wextra-semi-stmt warning.
+       * lib/argp-help.c (SKIPWS): Remove trailing semicolon.
+
 2023-09-06  Bruno Haible  <bruno@clisp.org>
 
        doc: Refine documentation of MSVC support for shared libraries.
index 15d94993c165368e2491b63e84a921ec499bcd32..7141edc74e7785a10f842a12e6ac2cce0085b2fe 100644 (file)
@@ -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)
     {