simple patch for config-std.h

Patrick Tullmann tullmann at cs.utah.edu
Thu Mar 9 13:35:46 PST 2000


Here's a simple cleanup patch for Kaffe's config/config-std.h.  It
uses __'s in the __NORETURN__ magic, and adds similar magic,
__UNUSED__, for unused functions (useful for static inline methods).

A ChangeLog entry might look like:

Patrick Tullmann  <tullmann at cs.utah.edu>
	* config/config-std.h: clean namespace in __NORETURN__.  Add
	  __UNUSED__ magic for __attribute__((__unused__)).

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann at cs.utah.edu


Index: config/config-std.h
===================================================================
RCS file: /cvs/kaffe/kaffe/config/config-std.h,v
retrieving revision 1.4
diff -u -r1.4 config-std.h
--- config/config-std.h 1999/02/03 01:55:04     1.4
+++ config/config-std.h 2000/03/09 21:30:56
@@ -48,9 +48,16 @@
 
 #undef __NORETURN__
 #if defined(__GNUC__)
-#define        __NORETURN__ __attribute__((noreturn))
+#define        __NORETURN__ __attribute__((__noreturn__))
 #else
 #define        __NORETURN__
+#endif
+
+#undef __UNUSED__
+#if defined(__GNUC__)
+#define        __UNUSED__ __attribute__((__unused__))
+#else
+#define        __UNUSED__
 #endif
 
 /* SunOS has on_exit only */



More information about the kaffe mailing list