瀏覽代碼

svn: 1273

Bryan Drewery 22 年之前
父節點
當前提交
7f716a9ec3
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/debug.c

+ 6 - 0
src/debug.c

@@ -170,7 +170,9 @@ static void write_debug()
 }
 #endif /* DEBUG_CONTEXT */
 
+#ifndef DEBUG_CONTEXT
 static void got_bus(int) __attribute__ ((noreturn));
+#endif /* DEBUG_CONTEXT */
 
 static void got_bus(int z)
 {
@@ -239,7 +241,9 @@ stackdump(int idx)
 };
 #endif /* !CYGWIN_HACKS */
 
+#ifndef DEBUG_CONTEXT
 static void got_segv(int) __attribute__ ((noreturn));
+#endif /* DEBUG_CONTEXT */
 
 static void got_segv(int z)
 {
@@ -279,7 +283,9 @@ static void got_term(int z)
   exit(1);		/* for GCC noreturn */
 }
 
+#ifndef DEBUG_CONTEXT
 static void got_abort(int) __attribute__ ((noreturn));
+#endif /* DEBUG_CONTEXT */
 
 static void got_abort(int z)
 {