From: Wolfgang Bangerth Date: Tue, 7 Apr 1998 16:57:26 +0000 (+0000) Subject: Remove compiler warning. X-Git-Tag: v8.0.0~23098 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16eddb78484b565a2df4cdfb25137f17f03d291c;p=dealii.git Remove compiler warning. git-svn-id: https://svn.dealii.org/trunk@156 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Attic/examples/dof/dof_test.cc b/deal.II/deal.II/Attic/examples/dof/dof_test.cc index c2f82c0c4a..c49075b912 100644 --- a/deal.II/deal.II/Attic/examples/dof/dof_test.cc +++ b/deal.II/deal.II/Attic/examples/dof/dof_test.cc @@ -180,8 +180,8 @@ void TestCases::run (ParameterHandler &prm) { { // set the boundary function Boundary *boundary = (test_case==2 ? - new Ball() : - new CurvedLine()); + static_cast*>(new Ball()) : + static_cast*>(new CurvedLine())); tria->set_boundary (boundary); // refine once diff --git a/tests/big-tests/dof/dof_test.cc b/tests/big-tests/dof/dof_test.cc index c2f82c0c4a..c49075b912 100644 --- a/tests/big-tests/dof/dof_test.cc +++ b/tests/big-tests/dof/dof_test.cc @@ -180,8 +180,8 @@ void TestCases::run (ParameterHandler &prm) { { // set the boundary function Boundary *boundary = (test_case==2 ? - new Ball() : - new CurvedLine()); + static_cast*>(new Ball()) : + static_cast*>(new CurvedLine())); tria->set_boundary (boundary); // refine once