Skip to content

Commit c2425fc

Browse files
colesburyapaszke
authored andcommitted
Fix build warning for C file
1 parent fbcedf2 commit c2425fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/csrc/dl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ static struct PyModuleDef torchdlmodule = {
1818
#endif
1919

2020
#if PY_MAJOR_VERSION == 2
21-
PyMODINIT_FUNC init_dl()
21+
PyMODINIT_FUNC init_dl(void)
2222
#else
23-
PyMODINIT_FUNC PyInit__dl()
23+
PyMODINIT_FUNC PyInit__dl(void)
2424
#endif
2525
{
2626

0 commit comments

Comments
 (0)