* python/python.c (finalize_python): Cast unused PyGILState_Ensure

return value to void to avoid compiler warning.
This commit is contained in:
Ulrich Weigand
2012-11-29 19:11:48 +00:00
parent a0c82a2bce
commit b1209b035b
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
* python/python.c (finalize_python): Cast unused PyGILState_Ensure
return value to void to avoid compiler warning.
2012-11-29 Ulrich Weigand <uweigand@de.ibm.com> 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
* opencl-lang.c (opencl_print_type): New function. * opencl-lang.c (opencl_print_type): New function.

View File

@@ -1415,7 +1415,7 @@ finalize_python (void *ignore)
Python interpreter, which we are about to destroy. It seems Python interpreter, which we are about to destroy. It seems
clearer to make the needed calls explicitly here than to create a clearer to make the needed calls explicitly here than to create a
cleanup and then mysteriously discard it. */ cleanup and then mysteriously discard it. */
PyGILState_Ensure (); (void) PyGILState_Ensure ();
python_gdbarch = target_gdbarch (); python_gdbarch = target_gdbarch ();
python_language = current_language; python_language = current_language;