From: Andre Noll Date: Sat, 19 Jan 2008 12:24:04 +0000 (+0100) Subject: gcc-compat.h: Fix __must_check. X-Git-Tag: v0.3.1~80 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=7870431b42795e129bfe3b4652b6d6cb5169eac7;hp=caaa42217811ca2c3a0e275af9dc99f80b5a8b75;p=paraslash.git gcc-compat.h: Fix __must_check. It didn't work for gcc-4. --- 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 */