← Commit list

9a3378015

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2007-06-21
FAILED Duration: 13s

Subject

- add ATTRIBUTE_UNUSED_RESULT for internal use

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/platform.h+3 -0
@@ -56,12 +56,15 @@
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
# if !ENABLE_WERROR
# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
+# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
# else
# define ATTRIBUTE_DEPRECATED /* n/a */
+# define ATTRIBUTE_UNUSED_RESULT /* n/a */
# endif
# else
# define ALWAYS_INLINE inline
# define ATTRIBUTE_DEPRECATED /* n/a */
+# define ATTRIBUTE_UNUSED_RESULT /* n/a */
# endif
/* -fwhole-program makes all symbols local. The attribute externally_visible