Skip to content

Commit

Permalink
Fix build with -Werror=incompatible-pointer-types
Browse files Browse the repository at this point in the history
And hence fix build with GCC 14 on Fedora 40+.
  • Loading branch information
hroncok committed Apr 29, 2024
1 parent ff1748e commit 7f97b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_crypt_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ crypt_r_crypt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)


static PyMethodDef crypt_r_methods[] = {
{"crypt", crypt_r_crypt, METH_FASTCALL, crypt_r_crypt__doc__},
{"crypt", (PyCFunction)crypt_r_crypt, METH_FASTCALL, crypt_r_crypt__doc__},
{NULL, NULL} /* sentinel */
};

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ env_list = py{311,312,313}
[testenv]
commands =
python tests/test_crypt_r.py {posargs}
setenv =
CFLAGS=-Werror=incompatible-pointer-types

0 comments on commit 7f97b27

Please sign in to comment.