-#define __printf_1_2 __printf(1,2)
-#define __printf_2_3 __printf(2,3)
-
-# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
-# define __must_check __attribute__ ((warn_unused_result))
-# else
-# define __must_check /* no warn_unused_result */
-# endif
+#define __printf(p,q) __attribute__ ((format (printf, p, q)))
+#define __printf_1_2 __printf(1,2)
+#define __printf_2_3 __printf(2,3)