From 12b27e631d519fd7d66a49f458cff1413986e11d Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sat, 19 Mar 2022 13:08:15 +0200 Subject: [PATCH] fix C --pedantic warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * extra semicolon in struct or union specified * ISO C does not allow extra ‘;’ outside of a function --- src/common/header/shared.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/header/shared.h b/src/common/header/shared.h index 23e4af26..8d3b12b1 100644 --- a/src/common/header/shared.h +++ b/src/common/header/shared.h @@ -65,7 +65,7 @@ typedef unsigned char byte; // must be used as prefix (YQ2_ATTR_NORETURN void bla();)! #define YQ2_ATTR_NORETURN __attribute__ ((noreturn)) #elif defined(_MSC_VER) - // Note: We prefer VS2019 16.8 or newer in C11 mode (/std:c11), + // Note: We prefer VS2019 16.8 or newer in C11 mode (/std:c11), // then the __STDC_VERSION__ >= 201112L case above is used #define YQ2_ALIGNAS_SIZE(SIZE) __declspec(align(SIZE)) @@ -148,7 +148,7 @@ typedef unsigned char byte; #ifdef _MSC_VER #define PRINTF_ATTR(FMT, VARGS) #else // at least GCC/mingw and clang support this - #define PRINTF_ATTR(FMT, VARGS) __attribute__((format(printf, FMT , VARGS ))); + #define PRINTF_ATTR(FMT, VARGS) __attribute__((format(printf, FMT , VARGS ))) #endif /* per-level limits */