summaryrefslogtreecommitdiff
path: root/numpy/core/src/scalarmathmodule.c.src
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-29 09:58:16 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-29 10:57:49 -0800
commit08fdf3b8ff613ad51af21e53de915c232bb395e4 (patch)
tree4db8082868fcec4ca53752d014e35c071d51fe19 /numpy/core/src/scalarmathmodule.c.src
parentcb7e0acab944d8b43550ae060b5ab888042c4954 (diff)
downloadnumpy-08fdf3b8ff613ad51af21e53de915c232bb395e4.tar.gz
WRN: core: Remove many warnings gcc produces with stricter flags
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r--numpy/core/src/scalarmathmodule.c.src8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src
index 418e81531..2bcc516b1 100644
--- a/numpy/core/src/scalarmathmodule.c.src
+++ b/numpy/core/src/scalarmathmodule.c.src
@@ -1007,9 +1007,9 @@ static PyObject *
/**end repeat**/
#if defined(NPY_PY3K)
-#define NONZERO_NAME(prefix, suffix) prefix##bool##suffix
+#define NONZERO_NAME(prefix) prefix##bool
#else
-#define NONZERO_NAME(prefix, suffix) prefix##nonzero##suffix
+#define NONZERO_NAME(prefix) prefix##nonzero
#endif
#define _IS_NONZERO(x) (x != 0)
@@ -1020,7 +1020,7 @@ static PyObject *
* #nonzero=_IS_NONZERO*10, !npy_half_iszero, _IS_NONZERO*6#
*/
static int
-NONZERO_NAME(@name@_,)(PyObject *a)
+NONZERO_NAME(@name@_)(PyObject *a)
{
int ret;
npy_@name@ arg1;
@@ -1029,7 +1029,7 @@ NONZERO_NAME(@name@_,)(PyObject *a)
if (PyErr_Occurred()) {
return -1;
}
- return PyGenericArrType_Type.tp_as_number->NONZERO_NAME(nb_,)(a);
+ return PyGenericArrType_Type.tp_as_number->NONZERO_NAME(nb_)(a);
}
/*