diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2012-11-29 19:11:48 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2012-11-29 19:11:48 +0000 |
commit | b1209b035bf46d6a7a7364789866a72ce0a3f5d9 (patch) | |
tree | ae6384ed5ed5f6632b0ee07ab7ddd2b9a1cbdd69 /gdb/python | |
parent | a0c82a2bce5a71582e21f9f47fbaa253e1d65dff (diff) | |
download | gdb-b1209b035bf46d6a7a7364789866a72ce0a3f5d9.zip gdb-b1209b035bf46d6a7a7364789866a72ce0a3f5d9.tar.gz gdb-b1209b035bf46d6a7a7364789866a72ce0a3f5d9.tar.bz2 |
* python/python.c (finalize_python): Cast unused PyGILState_Ensure
return value to void to avoid compiler warning.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 5f6df60..43677d5 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -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; |