* python/python.c (finalize_python): Cast unused PyGILState_Ensure
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 29 Nov 2012 19:11:48 +0000 (19:11 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 29 Nov 2012 19:11:48 +0000 (19:11 +0000)
return value to void to avoid compiler warning.

gdb/ChangeLog
gdb/python/python.c

index 1fe724d96e538a439f4f1fdaef669b2ddb6c3adc..d8635f1b3e14a5435c45bb948517db7134f9a46d 100644 (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>
 
        * opencl-lang.c (opencl_print_type): New function.
index 5f6df60e29b1e56aeea71574170a1cb3df888c7f..43677d5a1dba6923750872674f5fc0b70d3cc1f4 100644 (file)
@@ -1415,7 +1415,7 @@ finalize_python (void *ignore)
      Python interpreter, which we are about to destroy.  It seems
      clearer to make the needed calls explicitly here than to create a
      cleanup and then mysteriously discard it.  */
-  PyGILState_Ensure ();
+  (void) PyGILState_Ensure ();
   python_gdbarch = target_gdbarch ();
   python_language = current_language;