diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-26 15:56:33 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-26 15:56:33 +0000 |
commit | d2dfaf23b530b7f932e225fba71ca0194258864a (patch) | |
tree | 010fb2439c3e89d7245e4507e39099916fb4b0b0 /numpy/f2py | |
parent | b61fc7441ca8c1a0b239bbe292615ebbd7c4a0a6 (diff) | |
download | numpy-d2dfaf23b530b7f932e225fba71ca0194258864a.tar.gz |
Fix compiler warnings about returning int in void function.
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/rules.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index e322226c2..9d828aea2 100644 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -188,13 +188,12 @@ PyMODINIT_FUNC init#modulename#(void) { #initf90modhooks# #initcommonhooks# #interface_usercode# -\tif (PyErr_Occurred()) -\t\treturn -1; #ifdef F2PY_REPORT_ATEXIT -\ton_exit(f2py_report_on_exit,(void*)\"#modulename#\"); +\tif (! PyErr_Occurred()) +\t\ton_exit(f2py_report_on_exit,(void*)\"#modulename#\"); #endif -return 0; + } #ifdef __cplusplus } |