Commit 26de61ba authored by Travis Hance's avatar Travis Hance

use (void)

parent 1d7dcaf1
...@@ -825,13 +825,8 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force); ...@@ -825,13 +825,8 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
#endif /* !Py_TRACE_REFS */ #endif /* !Py_TRACE_REFS */
// Pyston change: made Py_INCREF and Py_DECREF into noops #define Py_INCREF(op) ((void)(op))
// written in a way that won't give "value not used" warnings. Use this empty #define Py_DECREF(op) ((void)(op))
// method instead:
static void _Py_do_nothing(PyObject *unused) { }
#define Py_INCREF(op) (_Py_do_nothing((PyObject*)(op)))
#define Py_DECREF(op) (_Py_do_nothing((PyObject*)(op)))
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
* and tp_dealloc implementatons. * and tp_dealloc implementatons.
...@@ -878,8 +873,8 @@ static void _Py_do_nothing(PyObject *unused) { } ...@@ -878,8 +873,8 @@ static void _Py_do_nothing(PyObject *unused) { }
/* Macros to use in case the object pointer may be NULL: */ /* Macros to use in case the object pointer may be NULL: */
// Pyston change: made these noops as well // Pyston change: made these noops as well
#define Py_XINCREF(op) (_Py_do_nothing((PyObject*)(op))) #define Py_XINCREF(op) ((void)(op))
#define Py_XDECREF(op) (_Py_do_nothing((PyObject*)(op))) #define Py_XDECREF(op) ((void)(op))
/* /*
These are provided as conveniences to Python runtime embedders, so that These are provided as conveniences to Python runtime embedders, so that
......
...@@ -35,7 +35,7 @@ IMAGE = "pyston_dbg" ...@@ -35,7 +35,7 @@ IMAGE = "pyston_dbg"
KEEP_GOING = False KEEP_GOING = False
FN_JUST_SIZE = 20 FN_JUST_SIZE = 20
EXTRA_JIT_ARGS = [] EXTRA_JIT_ARGS = []
TIME_LIMIT = 4 TIME_LIMIT = 6
# For fun, can test pypy. # For fun, can test pypy.
# Tough because the tester will check to see if the error messages are exactly the # Tough because the tester will check to see if the error messages are exactly the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment