From ce9b894f07d62f216353e8a1c704fb8a1993b0c7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 29 Aug 2025 14:50:56 +0200 Subject: [PATCH] include: os.h: fix extra ; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix pedantic warnings: > ../include/os.h:144:71: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] > 144 | XNFalloc(unsigned long /*amount */ ) __attribute__((returns_nonnull));; > ../include/os.h:158:76: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] > 158 | XNFcallocarray(size_t nmemb, size_t size) __attribute__((returns_nonnull));; Signed-off-by: Enrico Weigelt, metux IT consult --- include/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/os.h b/include/os.h index ab7e042eb3..74e7e09168 100644 --- a/include/os.h +++ b/include/os.h @@ -141,7 +141,7 @@ extern _X_EXPORT void GiveUp(int /*sig */ ); * enough memory. */ extern _X_EXPORT void * -XNFalloc(unsigned long /*amount */ ) __attribute__((returns_nonnull));; +XNFalloc(unsigned long /*amount */ ) __attribute__((returns_nonnull)); /* * This function calloc(3)s buffer, terminating the server if there is not @@ -155,7 +155,7 @@ XNFcalloc(unsigned long /*amount */ ) _X_DEPRECATED; * enough memory or the arguments overflow when multiplied */ extern _X_EXPORT void * -XNFcallocarray(size_t nmemb, size_t size) __attribute__((returns_nonnull));; +XNFcallocarray(size_t nmemb, size_t size) __attribute__((returns_nonnull)); /* * This function realloc(3)s passed buffer, terminating the server if there is