There was an error while loading. Please reload this page.
1 parent 3293b07 commit d0dc5b0Copy full SHA for d0dc5b0
1 file changed
Python/pyfpe.c
@@ -11,14 +11,14 @@
11
#ifdef WANT_SIGFPE_HANDLER
12
jmp_buf PyFPE_jbuf;
13
int PyFPE_counter = 0;
14
-double PyFPE_dummy(void *dummy){ return 1.0; }
15
-#else
16
-#ifdef __MWERKS__
17
-/*
18
- * Metrowerks fails when compiling an empty file, at least in strict ANSI
19
- * mode. - [cjh]
20
- */
21
-static double PyFPE_dummy( void * );
22
-static double PyFPE_dummy( void *dummy ) { return 1.0; }
23
-#endif
24
#endif
+
+/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
+ warning when compiling an empty file. */
+double
+PyFPE_dummy(dummy)
+ void *dummy;
+{
+ return 1.0;
+}
0 commit comments