From e647402fd3e818b5b6c45e14088ac5d357867390 Mon Sep 17 00:00:00 2001 From: Jason Ansel Date: Sun, 18 Sep 2022 12:57:32 -0700 Subject: [PATCH] Fix warning in generated C code (#667) --- python/triton/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/triton/compiler.py b/python/triton/compiler.py index 98ccc6b1a..ac65fd49d 100644 --- a/python/triton/compiler.py +++ b/python/triton/compiler.py @@ -1139,7 +1139,7 @@ static struct PyModuleDef ModuleDef = {{ ModuleMethods }}; -PyMODINIT_FUNC PyInit_{kernel_name}() {{ +PyMODINIT_FUNC PyInit_{kernel_name}(void) {{ PyObject *m = PyModule_Create(&ModuleDef); if(m == NULL) {{ return NULL;