From d89d8e6b45b7c13b77aa7c2f1c480f58429b08af Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 28 Apr 2007 07:45:26 -0700 Subject: [PATCH] pixman.h: Add missing definition of WARN_UNUSED_RESULT This was breaking the build on systems without support for the __warn_unused_result__ attribute. --- pixman/src/pixman.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pixman/src/pixman.h b/pixman/src/pixman.h index b905b47d1..8a2dd18f3 100644 --- a/pixman/src/pixman.h +++ b/pixman/src/pixman.h @@ -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