Introduce ATTRIBUTE_UNUSED_RESULT and use it
[deliverable/binutils-gdb.git] / gdb / common / common-defs.h
index 732693d65cc6ef8090c3837ec36898c879363f45..6b1f004ab1bd97f4fdbc4e3814e4a4d89c382f7b 100644 (file)
 #undef ATTRIBUTE_PRINTF
 #define ATTRIBUTE_PRINTF _GL_ATTRIBUTE_FORMAT_PRINTF
 
+#if GCC_VERSION >= 3004
+#define ATTRIBUTE_UNUSED_RESULT __attribute__ ((__warn_unused_result__))
+#else
+#define ATTRIBUTE_UNUSED_RESULT
+#endif
+
 #include "libiberty.h"
 #include "pathmax.h"
 #include "gdb/signals.h"
This page took 0.023085 seconds and 4 git commands to generate.