From: Ulrich Weigand Date: Wed, 17 Feb 2010 14:58:54 +0000 (+0000) Subject: * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=548a926afa44671171f9b10cfe6ef9b8bfbc32d0;p=binutils-gdb.git * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, PyThreadState_Swap): Avoid "statement with no effect" warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21b9d97823d..c510a58c5e6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-17 Ulrich Weigand + + * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, + PyThreadState_Swap): Avoid "statement with no effect" warning. + 2010-02-17 Jan Kratochvil * solib-svr4.c (enable_break ): New variable diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 9196f08e251..1bfa700b8e5 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