[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
This commit is contained in:
Armin Novak
2026-01-27 12:59:22 +01:00
parent f56c215ece
commit f443c1bc6f

View File

@@ -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))