From: wolf Date: Tue, 16 Feb 1999 12:05:28 +0000 (+0000) Subject: Give a variable a default value to make to compiler happy. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3402b8015f71dea11ba89d5a0a1ee32ccb45345f;p=dealii-svn.git Give a variable a default value to make to compiler happy. git-svn-id: https://svn.dealii.org/trunk@811 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 4b34c24914..d111755c67 100644 --- a/deal.II/deal.II/Attic/examples/dof/dof_test.cc +++ b/deal.II/deal.II/Attic/examples/dof/dof_test.cc @@ -142,7 +142,7 @@ void TestCases::run (ParameterHandler &prm) { cout << " Making grid..." << endl; string test = prm.get ("Test run"); - unsigned int test_case; + unsigned int test_case = 1; if (test=="zoom in") test_case = 1; else if (test=="ball") test_case = 2; diff --git a/tests/big-tests/dof/dof_test.cc b/tests/big-tests/dof/dof_test.cc index 4b34c24914..d111755c67 100644 --- a/tests/big-tests/dof/dof_test.cc +++ b/tests/big-tests/dof/dof_test.cc @@ -142,7 +142,7 @@ void TestCases::run (ParameterHandler &prm) { cout << " Making grid..." << endl; string test = prm.get ("Test run"); - unsigned int test_case; + unsigned int test_case = 1; if (test=="zoom in") test_case = 1; else if (test=="ball") test_case = 2;