mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 10:17:53 +08:00
* python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
PyThreadState_Swap): Avoid "statement with no effect" warning.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user