* python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
PyThreadState_Swap): Avoid "statement with no effect" warning.
This commit is contained in:
parent
ad3a0e5b17
commit
548a926afa
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue