Skip to content

Commit bfa9eac

Browse files
authored
[mypyc] Be stricter about function prototypes (#14942)
I'm trying to fix this error: ``` float_ops.c:9:15: error: function declaration isn't a prototype [-Werror=strict-prototypes] 9 | static double CPy_DomainError() { ```
1 parent 4e6d683 commit bfa9eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: mypyc/lib-rt/float_ops.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
#include "CPy.h"
77

88

9-
static double CPy_DomainError() {
9+
static double CPy_DomainError(void) {
1010
PyErr_SetString(PyExc_ValueError, "math domain error");
1111
return CPY_FLOAT_ERROR;
1212
}
1313

14-
static double CPy_MathRangeError() {
14+
static double CPy_MathRangeError(void) {
1515
PyErr_SetString(PyExc_OverflowError, "math range error");
1616
return CPY_FLOAT_ERROR;
1717
}

0 commit comments

Comments
 (0)