mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 08:08:04 +02:00
pixman.h: Add missing definition of WARN_UNUSED_RESULT
This was breaking the build on systems without support for the __warn_unused_result__ attribute.
This commit is contained in:
parent
cb6fcdae92
commit
d89d8e6b45
1 changed files with 3 additions and 0 deletions
|
|
@ -103,6 +103,9 @@ SOFTWARE.
|
|||
#define pixman_private_no_warn
|
||||
#endif
|
||||
|
||||
#ifndef WARN_UNUSED_RESULT
|
||||
#define WARN_UNUSED_RESULT
|
||||
#endif
|
||||
/* Add attribute(warn_unused_result) if supported */
|
||||
#define pixman_warn WARN_UNUSED_RESULT
|
||||
#define pixman_private pixman_private_no_warn pixman_warn
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue