spa: add SPA_WARN_UNUSED_RESULT

This commit is contained in:
Thomas Weißschuh 2022-08-19 08:19:35 +02:00 committed by Wim Taymans
parent bbb3cdc185
commit 6531bedcdb

View file

@ -215,6 +215,7 @@ struct spa_fraction {
#define SPA_SENTINEL __attribute__((__sentinel__))
#define SPA_UNUSED __attribute__ ((unused))
#define SPA_NORETURN __attribute__ ((noreturn))
#define SPA_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
#else
#define SPA_PRINTF_FUNC(fmt, arg1)
#define SPA_FORMAT_ARG_FUNC(arg1)
@ -224,6 +225,7 @@ struct spa_fraction {
#define SPA_SENTINEL
#define SPA_UNUSED
#define SPA_NORETURN
#define SPA_WARN_UNUSED_RESULT
#endif
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L