From 3402b8015f71dea11ba89d5a0a1ee32ccb45345f Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 16 Feb 1999 12:05:28 +0000 Subject: [PATCH] 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 --- deal.II/deal.II/Attic/examples/dof/dof_test.cc | 2 +- tests/big-tests/dof/dof_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5