1
0
Bryan Drewery 16 жил өмнө
parent
commit
afb1ba65f0
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      src/debug.c

+ 3 - 1
src/debug.c

@@ -189,12 +189,14 @@ static void got_segv(int z)
 #endif /* DEBUG */
 }
 
+#ifndef DEBUG
 static void got_fpe(int) __attribute__ ((noreturn));
+#endif /* DEBUG */
 
 static void got_fpe(int z)
 {
   write_debug();
-  fatal("FLOATING POINT ERROR -- CRASHING!", 0);
+  fatal("FLOATING POINT ERROR -- CRASHING!", 1);
 #ifdef DEBUG
   raise(SIGFPE);
 #else