From f443c1bc6fa7254af2b5782492462cce986eee75 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 27 Jan 2026 12:59:22 +0100 Subject: [PATCH] [winpr,platform] drop C23 [[nodiscard]] In WINPR_ATTR_NODISCARD drop the C23 [[nodiscard]] until we figure out how to avoid compiler errors on fedora/gcc 15 --- winpr/include/winpr/platform.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/winpr/include/winpr/platform.h b/winpr/include/winpr/platform.h index a8ccb640f..7c0d5d5e3 100644 --- a/winpr/include/winpr/platform.h +++ b/winpr/include/winpr/platform.h @@ -75,10 +75,7 @@ #define WINPR_FALLTHROUGH (void)0; #endif -// C23 related macros -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202003L) -#define WINPR_ATTR_NODISCARD [[nodiscard]] -#elif defined(__clang__) +#if defined(__clang__) #define WINPR_ATTR_NODISCARD __attribute__((warn_unused_result)) #elif defined(__GNUC__) && (__GNUC__ >= 7) #define WINPR_ATTR_NODISCARD __attribute__((warn_unused_result))