]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use braces to avoid a new warning in gcc 4.3
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 20:51:36 +0000 (20:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 20:51:36 +0000 (20:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@14371 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 1e23e898c673dbad515ca45dc1c278ca5028b93e..6fe7648e89c05471f5a835a67e3c1c2ed9803701 100644 (file)
@@ -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)) 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.