From ddfcb845dd264cbe222aefe471e3606f793cf96f Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 25 Jan 2007 20:51:36 +0000 Subject: [PATCH] Use braces to avoid a new warning in gcc 4.3 git-svn-id: https://svn.dealii.org/trunk@14371 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/parameter_handler.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc index 1e23e898c6..6fe7648e89 100644 --- a/deal.II/base/source/parameter_handler.cc +++ b/deal.II/base/source/parameter_handler.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 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 @@ -1292,15 +1292,17 @@ ParameterHandler::scan_line (std::string line, // exit subsection if ((line.find ("END") == 0) || (line.find ("end") == 0)) - if (subsection_path.size() == 0) - { - std::cerr << "Line " << lineno - << ": There is no subsection to leave here!" << std::endl; - return false; - } - else - return leave_subsection (); - + { + if (subsection_path.size() == 0) + { + std::cerr << "Line " << lineno + << ": There is no subsection to leave here!" << std::endl; + return false; + } + else + return leave_subsection (); + } + // regular entry if ((line.find ("SET ") == 0) || (line.find ("set ") == 0)) -- 2.39.5