This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b3b5cf668b7656b4ae41009612148b15ec111cbe

commit b3b5cf668b7656b4ae41009612148b15ec111cbe
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sat Feb 4 23:57:30 2023 +0100

    libdpkg: Surround macro within a do-while block
    
    Warned-by: clang -Wextra-semi
---
 lib/dpkg/nfmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpkg/nfmalloc.c b/lib/dpkg/nfmalloc.c
index d07635188..c2eca62a2 100644
--- a/lib/dpkg/nfmalloc.c
+++ b/lib/dpkg/nfmalloc.c
@@ -38,7 +38,7 @@ static bool dbobs_init = false;
 /* We use lots of mem, so use a large chunk. */
 #define CHUNK_SIZE 8192
 
-#define OBSTACK_INIT if (!dbobs_init) { nfobstack_init(); }
+#define OBSTACK_INIT do { if (!dbobs_init) { nfobstack_init(); } } while (0)
 
 static void nfobstack_init(void) {
   obstack_init(&db_obs);

-- 
Dpkg.Org's dpkg

Reply via email to