mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Michael Forney <mforney@mforney.org>
To: musl@lists.openwall.com
Subject: [musl] [PATCH] mallocng: remove stray ';' at top-level
Date: Mon, 15 Apr 2024 03:26:17 -0700	[thread overview]
Message-ID: <4e665a812fb4140908e1c22740afe9dd.mforney@mforney.org> (raw)

The LOCK_OBJ_DEF macro ends with the closing brace of a
function-definition, which is a complete external-declaration. The
semicolon following the macro use is therefore unnecessary. Empty
declarations are not syntactically valid according to the ISO C
grammar, so remove it.
---
 src/malloc/mallocng/malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/malloc/mallocng/malloc.c b/src/malloc/mallocng/malloc.c
index d695ab8e..2549eb38 100644
--- a/src/malloc/mallocng/malloc.c
+++ b/src/malloc/mallocng/malloc.c
@@ -7,7 +7,7 @@
 
 #include "meta.h"
 
-LOCK_OBJ_DEF;
+LOCK_OBJ_DEF
 
 const uint16_t size_classes[] = {
 	1, 2, 3, 4, 5, 6, 7, 8,
-- 
2.44.0


             reply	other threads:[~2024-04-16  5:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-15 10:26 Michael Forney [this message]
2024-04-16 13:45 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e665a812fb4140908e1c22740afe9dd.mforney@mforney.org \
    --to=mforney@mforney.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).