some fixes for xml dumper / still buggy.
[libfirm] / ir / debug / dbginfo.h
index f3cfc3b..9ff67dd 100644 (file)
@@ -115,7 +115,11 @@ typedef enum {
 /**
  * Converts enum values to strings.
  */
-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;
@@ -133,6 +137,7 @@ static const char* dbg_action_2_str(dbg_action a) {
       return "string conversion not implemented";
     else
       assert(0);
+    return NULL;
   }
 }