}
static PyObject*
-PyStdOut_flush(PyStdOut *self)
+PyStdOut_flush(PyStdOut * /*self*/, PyObject * /*args*/)
{
Py_INCREF(Py_None);
return Py_None;
static PyMethodDef PyStdOut_methods[] = {
{"write", (PyCFunction)PyStdOut_write, METH_VARARGS, PyDoc_STR("write(string) -> None")},
{"flush", (PyCFunction)PyStdOut_flush, METH_NOARGS, PyDoc_STR("flush() -> None")},
- {NULL, NULL} /* sentinel */
+ {NULL, (PyCFunction)NULL, 0, NULL} /* sentinel */
};
static PyMemberDef PyStdOut_memberlist[] = {
{(char*)"softspace", T_INT, offsetof(PyStdOut, softspace), 0,
(char*)"flag indicating that a space needs to be printed; used by print"},
- {NULL} /* Sentinel */
+ {NULL, 0, 0, 0, NULL} /* Sentinel */
};
static PyTypeObject PyStdOut_Type = {
{
protected:
PyInterp_RefCounterObj():_cnt(1) { }
- PyInterp_RefCounterObj(const PyInterp_RefCounterObj& other):_cnt(1) { }
+ PyInterp_RefCounterObj(const PyInterp_RefCounterObj& /*other*/):_cnt(1) { }
public:
bool decrRef() const
{
void incrRef() const { _cnt++; }
int getRCValue() const { return _cnt; }
// copies using operator= should not copy the ref counter of \a other
- PyInterp_RefCounterObj& operator=(const PyInterp_RefCounterObj& other) { return *this; }
+ PyInterp_RefCounterObj& operator=(const PyInterp_RefCounterObj& /*other*/) { return *this; }
protected:
virtual ~PyInterp_RefCounterObj() { }
private: