Salome HOME
Fight warnings
[tools/libbatch.git] / src / Core / Test / Test_SimpleParser.cxx
index f635e42208af4a678335d62449d23b3acdb22719..e10403a0284dbb8307f1b143cf305ca733b04749 100644 (file)
@@ -35,7 +35,7 @@
 
 using namespace std;
 
-int main(int argc, char** argv)
+int main(int /*argc*/, char** /*argv*/)
 {
   cout << "*******************************************************************************************" << endl;
   cout << "This program tests the simple parser that parses the configuration file used in the other" << endl;
@@ -49,7 +49,7 @@ int main(int argc, char** argv)
   try {
     // Parse the configuration file
     parser.parseTestConfigFile();
-  } catch (ParserException e) {
+  } catch (const ParserException& e) {
     cerr << "Parser error: " << e.what() << endl;
     return 1;
   }