* python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 17 Feb 2010 14:58:54 +0000 (14:58 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 17 Feb 2010 14:58:54 +0000 (14:58 +0000)
PyThreadState_Swap): Avoid "statement with no effect" warning.

gdb/ChangeLog
gdb/python/python-internal.h

index 21b9d97823d4c5fc3b71f7d3a01bd63c52975908..c510a58c5e67bc0cc1584fc5352a6e2e8c81802c 100644 (file)
@@ -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
index 9196f08e2510ad8f52b634bb1e2364d0e1db6cb0..1bfa700b8e5e5b2e1ee3f785db2d7735d2cb6c43 100644 (file)
@@ -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
This page took 0.026341 seconds and 4 git commands to generate.