From 548a926afa44671171f9b10cfe6ef9b8bfbc32d0 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Feb 2010 14:58:54 +0000 Subject: * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, PyThreadState_Swap): Avoid "statement with no effect" warning. --- gdb/python/python-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python/python-internal.h') diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 9196f08..1bfa700 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -54,9 +54,9 @@ typedef int Py_ssize_t; PyGILState_STATE will be. */ #ifndef WITH_THREAD #define PyGILState_Ensure() ((PyGILState_STATE) 0) -#define PyGILState_Release(ARG) (ARG) +#define PyGILState_Release(ARG) ((void)(ARG)) #define PyEval_InitThreads() 0 -#define PyThreadState_Swap(ARG) (ARG) +#define PyThreadState_Swap(ARG) ((void)(ARG)) #define PyEval_InitThreads() 0 #define PyEval_ReleaseLock() 0 #endif -- cgit v1.1