]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
[PATCH] Fix -Wextra warnings
authorJulien Schueller <schueller@phimeca.com>
Wed, 13 Nov 2019 10:32:07 +0000 (11:32 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 14 Nov 2019 13:10:24 +0000 (14:10 +0100)
Signed-off-by: Ovidiu Mircescu <ovidiu.mircescu@edf.fr>
tools/PyInterp/src/PyInterp_Interp.cxx
tools/PyInterp/src/PyInterp_RefCounterObj.h

index b589f80e0c07edd3eca4d2d7ce569e279665c46c..e741cce27cad0005e5cc3fff91fb340c8905608a 100644 (file)
@@ -72,7 +72,7 @@ PyStdOut_write(PyStdOut *self, PyObject *args)
 }
 
 static PyObject*
-PyStdOut_flush(PyStdOut *self)
+PyStdOut_flush(PyStdOut * /*self*/, PyObject * /*args*/)
 {
   Py_INCREF(Py_None);
   return Py_None;
@@ -81,13 +81,13 @@ PyStdOut_flush(PyStdOut *self)
 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 = {
index c430b01f080a762080c1a263386c9d365140e87a..00f2c1a9d56b19a21a26bd9a7241e2669d04233d 100644 (file)
@@ -58,7 +58,7 @@ class PYINTERP_EXPORT PyInterp_RefCounterObj
 {
  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
   {
@@ -70,7 +70,7 @@ class PYINTERP_EXPORT PyInterp_RefCounterObj
   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: