mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: add SPA_WARN_UNUSED_RESULT
This commit is contained in:
parent
bbb3cdc185
commit
6531bedcdb
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue