elimated warnings
authorTill Riedel <till@ipd.info.uni-karlsruhe.de>
Mon, 23 Jun 2003 17:11:44 +0000 (17:11 +0000)
committerTill Riedel <till@ipd.info.uni-karlsruhe.de>
Mon, 23 Jun 2003 17:11:44 +0000 (17:11 +0000)
[r1386]

ir/common/firm.c
ir/debug/dbginfo.h

index 075d623..fc6db5d 100644 (file)
@@ -16,7 +16,6 @@
 # include "ident_t.h"
 # include "firm.h"
 # include "mangle.h"
-//# include "xp_help.h"
 # include "tv_t.h"
 /* init functions are not public */
 # include "tpop_t.h"
index 50b1597..34445cc 100644 (file)
@@ -115,7 +115,11 @@ typedef enum {
 /**
  * Converts enum values to strings.
  */
-inline static const char* dbg_action_2_str(dbg_action a) {
+#ifdef __GNUC__
+INLINE static const char* dbg_action_2_str(dbg_action) __attribute__ ((unused));
+#endif
+
+INLINE static const char* dbg_action_2_str(dbg_action a) {
   switch(a) {
   case dbg_error: return "dbg_error"; break;
   case dbg_opt_ssa: return "dbg_opt_ssa"; break;