Skip to content

Commit c08cd14

Browse files
authored
tests: fix test failures on upcoming gcc-14 (#671)
Upcoming `gcc-14` enabled a few warnings into errors, like `-Wint-conversion`. This caused `shadow` build to fail as: src/extended/extended.c:13:9: error: initialization of ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion] 13 | NULL, | ^~~~ The change fixes `int ml_flags;` to take `int` instead of pointer.
1 parent dc8e254 commit c08cd14

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/masonry/builders/fixtures/extended/extended/extended.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
1010
{
1111
"hello",
1212
(PyCFunction) hello,
13-
NULL,
13+
0,
1414
PyDoc_STR("Say hello.")
1515
},
1616
{NULL}

tests/masonry/builders/fixtures/extended_with_no_setup/extended/extended.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
1010
{
1111
"hello",
1212
(PyCFunction) hello,
13-
NULL,
13+
0,
1414
PyDoc_STR("Say hello.")
1515
},
1616
{NULL}

tests/masonry/builders/fixtures/src_extended/src/extended/extended.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
1010
{
1111
"hello",
1212
(PyCFunction) hello,
13-
NULL,
13+
0,
1414
PyDoc_STR("Say hello.")
1515
},
1616
{NULL}

0 commit comments

Comments
 (0)