From 7870431b42795e129bfe3b4652b6d6cb5169eac7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 19 Jan 2008 13:24:04 +0100 Subject: [PATCH] gcc-compat.h: Fix __must_check. It didn't work for gcc-4. --- gcc-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc-compat.h b/gcc-compat.h index c4e43107..61c3c88d 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -16,7 +16,7 @@ #define __printf_1_2 __printf(1,2) #define __printf_2_3 __printf(2,3) -# if __GNUC__ >=3 && __GNUC_MINOR__ > 3 +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3) # define __must_check __attribute__ ((warn_unused_result)) # else # define __must_check /* no warn_unused_result */ -- 2.39.2