From: Wolfgang Bangerth Date: Thu, 2 Aug 2007 22:36:15 +0000 (+0000) Subject: Remove unnecessary semicolons that lead current gcc mainline versions to issue warnings X-Git-Tag: v8.0.0~10150 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a119a51c21dfcc856465ce60b78bdc126acf3b6c;p=dealii.git Remove unnecessary semicolons that lead current gcc mainline versions to issue warnings git-svn-id: https://svn.dealii.org/trunk@14893 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/filtered_iterator.h b/deal.II/deal.II/include/grid/filtered_iterator.h index 5c10346a90..d13a3e6b19 100644 --- a/deal.II/deal.II/include/grid/filtered_iterator.h +++ b/deal.II/deal.II/include/grid/filtered_iterator.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -626,7 +626,7 @@ class FilteredIterator : public BaseIterator * pointers to the base * class. */ - virtual ~PredicateBase () {}; + virtual ~PredicateBase () {} /** * Abstract function which in diff --git a/tests/deal.II/boundaries.cc b/tests/deal.II/boundaries.cc index d7f963a7fd..0e16b5200b 100644 --- a/tests/deal.II/boundaries.cc +++ b/tests/deal.II/boundaries.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2000, 2001, 2003, 2004, 2005, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -41,15 +41,15 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return 100*(component+1)*p.square()*std::sin(p.square()); }; + { return 100*(component+1)*p.square()*std::sin(p.square()); } virtual void vector_value (const Point &p, Vector &values) const - { for (unsigned int d=0; dn_components; ++d) values(d) = value(p,d); }; + { for (unsigned int d=0; dn_components; ++d) values(d) = value(p,d); } }; diff --git a/tests/deal.II/derivative_approximation_2.cc b/tests/deal.II/derivative_approximation_2.cc index 9e0fc6d927..96f421a969 100644 --- a/tests/deal.II/derivative_approximation_2.cc +++ b/tests/deal.II/derivative_approximation_2.cc @@ -2,7 +2,7 @@ // // Version: // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -43,11 +43,11 @@ template class MyFunction : public Function { public: - MyFunction () : Function() {}; + MyFunction () : Function() {} virtual double value (const Point &p, const unsigned int) const - { return sin(p[0]*a)*cos(p[1]*b); }; + { return sin(p[0]*a)*cos(p[1]*b); } }; template diff --git a/tests/deal.II/dof_test.cc b/tests/deal.II/dof_test.cc index fe3ce4a717..01169ff884 100644 --- a/tests/deal.II/dof_test.cc +++ b/tests/deal.II/dof_test.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -57,7 +57,7 @@ class Ball middle(i) += .5; return middle; - }; + } virtual Point @@ -72,7 +72,7 @@ class Ball middle(i) += .5; return middle; - }; + } }; diff --git a/tests/deal.II/error_estimator.cc b/tests/deal.II/error_estimator.cc index d77b02d36f..99252906e5 100644 --- a/tests/deal.II/error_estimator.cc +++ b/tests/deal.II/error_estimator.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -38,16 +38,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/deal.II/grid_test.cc b/tests/deal.II/grid_test.cc index 9cc75ad5eb..eb405a5ac8 100644 --- a/tests/deal.II/grid_test.cc +++ b/tests/deal.II/grid_test.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -49,7 +49,7 @@ class Ball : middle(i) += .5; return middle; - }; + } virtual Point @@ -63,7 +63,7 @@ class Ball : middle(i) += .5; return middle; - }; + } }; diff --git a/tests/deal.II/matrices.cc b/tests/deal.II/matrices.cc index dcb17c0b9b..2592e86764 100644 --- a/tests/deal.II/matrices.cc +++ b/tests/deal.II/matrices.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -41,16 +41,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/deal.II/vectors_boundary_rhs_01.cc b/tests/deal.II/vectors_boundary_rhs_01.cc index db8e0baa42..20bc553f69 100644 --- a/tests/deal.II/vectors_boundary_rhs_01.cc +++ b/tests/deal.II/vectors_boundary_rhs_01.cc @@ -43,18 +43,18 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(dim) {}; + MySquareFunction () : Function(dim) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - }; + } }; diff --git a/tests/deal.II/vectors_point_source_01.cc b/tests/deal.II/vectors_point_source_01.cc index 413e1904f2..686f099424 100644 --- a/tests/deal.II/vectors_point_source_01.cc +++ b/tests/deal.II/vectors_point_source_01.cc @@ -44,15 +44,15 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } }; diff --git a/tests/deal.II/vectors_rhs_01.cc b/tests/deal.II/vectors_rhs_01.cc index fa85e9b77b..e7b69e3530 100644 --- a/tests/deal.II/vectors_rhs_01.cc +++ b/tests/deal.II/vectors_rhs_01.cc @@ -43,16 +43,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/deal.II/vectors_rhs_03.cc b/tests/deal.II/vectors_rhs_03.cc index 2223d1411a..e707f0713d 100644 --- a/tests/deal.II/vectors_rhs_03.cc +++ b/tests/deal.II/vectors_rhs_03.cc @@ -44,15 +44,15 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } };