Skip to content

Commit

Permalink
tests: fix test failures on upcoming gcc-14 (#671)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trofi authored Dec 9, 2023
1 parent dc8e254 commit c08cd14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
{
"hello",
(PyCFunction) hello,
NULL,
0,
PyDoc_STR("Say hello.")
},
{NULL}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
{
"hello",
(PyCFunction) hello,
NULL,
0,
PyDoc_STR("Say hello.")
},
{NULL}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static PyMethodDef module_methods[] = {
{
"hello",
(PyCFunction) hello,
NULL,
0,
PyDoc_STR("Say hello.")
},
{NULL}
Expand Down

0 comments on commit c08cd14

Please sign in to comment.