Skip to content

Commit

Permalink
Fix 'function declaration isn’t a prototype' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Sep 23, 2015
1 parent 3ff7ead commit 9ca7fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: [email protected]:pre-commit/pre-commit-hooks
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70
sha: f82fb149af2c1b552b50e3e38e38ed3a44d4cda1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -12,7 +12,7 @@
- id: requirements-txt-fixer
- id: flake8
- repo: [email protected]:asottile/reorder_python_imports
sha: 3d86483455ab5bd06cc1069fdd5ac57be5463f10
sha: f3dfe379d2ea341c6cf54d926d4585b35dea9251
hooks:
- id: reorder-python-imports
exclude: ^bench/
4 changes: 2 additions & 2 deletions _cheetah.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ static struct PyModuleDef module = {
methods
};

PyMODINIT_FUNC PyInit__cheetah() {
PyMODINIT_FUNC PyInit__cheetah(void) {
return _setup_module(PyModule_Create(&module));
}
#else
PyMODINIT_FUNC init_cheetah() {
PyMODINIT_FUNC init_cheetah(void) {
_setup_module(Py_InitModule3("_cheetah", methods, NULL));
}
#endif

0 comments on commit 9ca7fce

Please sign in to comment.