svn commit: trunk/busybox/include

aldot at busybox.net aldot at busybox.net
Thu Jun 21 10:39:24 UTC 2007


Author: aldot
Date: 2007-06-21 03:39:20 -0700 (Thu, 21 Jun 2007)
New Revision: 18878

Log:
- add ATTRIBUTE_UNUSED_RESULT for internal use


Modified:
   trunk/busybox/include/platform.h


Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h	2007-06-21 10:28:11 UTC (rev 18877)
+++ trunk/busybox/include/platform.h	2007-06-21 10:39:20 UTC (rev 18878)
@@ -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




More information about the busybox-cvs mailing list