diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-02-17 14:58:54 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-02-17 14:58:54 +0000 |
commit | 548a926afa44671171f9b10cfe6ef9b8bfbc32d0 (patch) | |
tree | db7a411b88fb2ca00d0498cff89b7aeeb2c7f8c4 /gdb | |
parent | ad3a0e5b17fb2b3429c66a9222103eed23ebb5e9 (diff) | |
download | gdb-548a926afa44671171f9b10cfe6ef9b8bfbc32d0.zip gdb-548a926afa44671171f9b10cfe6ef9b8bfbc32d0.tar.gz gdb-548a926afa44671171f9b10cfe6ef9b8bfbc32d0.tar.bz2 |
* python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
PyThreadState_Swap): Avoid "statement with no effect" warning.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/python-internal.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21b9d97..c510a58 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-17 Ulrich Weigand <uweigand@de.ibm.com> + + * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, + PyThreadState_Swap): Avoid "statement with no effect" warning. + 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> * solib-svr4.c (enable_break <target_auxv_search>): New variable 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 |