From b1209b035bf46d6a7a7364789866a72ce0a3f5d9 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 29 Nov 2012 19:11:48 +0000 Subject: [PATCH] * python/python.c (finalize_python): Cast unused PyGILState_Ensure return value to void to avoid compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/python/python.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1fe724d96e5..d8635f1b3e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-11-29 Ulrich Weigand + + * python/python.c (finalize_python): Cast unused PyGILState_Ensure + return value to void to avoid compiler warning. + 2012-11-29 Ulrich Weigand * opencl-lang.c (opencl_print_type): New function. diff --git a/gdb/python/python.c b/gdb/python/python.c index 5f6df60e29b..43677d5a1db 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; -- 2.30.2