Dear all, there is a warning about an unused parameter due to line 84 in basic.h (GiNaC 1.0.5): virtual void destroy(bool call_parent) { } Having seen the warning a million times I thought it was better to report it ;-) All the best Roberto -- Prof. Roberto Bagnara Computer Science Group Department of Mathematics, University of Parma, Italy http://www.cs.unipr.it/~bagnara/ mailto:bagnara@cs.unipr.it
Hi! On Sat, Feb 02, 2002 at 07:34:12AM +0100, Roberto Bagnara wrote:
there is a warning about an unused parameter due to line 84 in basic.h (GiNaC 1.0.5):
virtual void destroy(bool call_parent) { }
But the parameter _is_ unused... :-/ Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
On Sat, 2 Feb 2002, Roberto Bagnara wrote:
there is a warning about an unused parameter due to line 84 in basic.h (GiNaC 1.0.5):
virtual void destroy(bool call_parent) { }
Having seen the warning a million times I thought it was better to report it ;-)
Which compiler/switches do you use? Maybe __attribute__ ((unused)) helps (for gcc 3.x). Alex -- Alexander Frink E-Mail: Alexander.Frink@Uni-Mainz.DE Institut fuer Physik Phone: +49-6131-3923391 Johannes-Gutenberg-Universitaet D-55099 Mainz, Germany
Hi! On Sat, Feb 02, 2002 at 10:56:38PM +0100, Alexander Frink wrote:
there is a warning about an unused parameter due to line 84 in basic.h (GiNaC 1.0.5):
Which compiler/switches do you use? Maybe __attribute__ ((unused)) helps (for gcc 3.x).
I'd suggest -Wno-unused-parameter. Unused parameters are common in C++, with all the overloaded functions. Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
On Sun, 3 Feb 2002, Christian Bauer wrote:
I'd suggest -Wno-unused-parameter. Unused parameters are common in C++, with all the overloaded functions.
That's the reason why I have never seen a compiler complaining about it. Nevertheless -Wno-unused-parameter also would disable the warning in cases where it might be useful. Alex -- Alexander Frink E-Mail: Alexander.Frink@Uni-Mainz.DE Institut fuer Physik Phone: +49-6131-3923391 Johannes-Gutenberg-Universitaet D-55099 Mainz, Germany
participants (3)
-
Alexander Frink
-
Christian Bauer
-
Roberto Bagnara