From e3d167048f1d2b651eefdab00b68c1dc4887437b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 15 Apr 2014 09:48:19 +0200 Subject: [PATCH] Commented out unused function arguments. --- opm/parser/eclipse/Applications/Schedule.cpp | 2 +- opm/parser/eclipse/EclipseState/Grid/EclipseGrid.cpp | 2 +- opm/parser/eclipse/Parser/ParserItem.cpp | 4 ++-- opm/parser/eclipse/Parser/createDefaultKeywordList.cpp | 2 +- opm/parser/eclipse/Parser/tests/createInlineItemTest.cpp | 2 +- opm/parser/eclipse/RawDeck/StarToken.hpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/opm/parser/eclipse/Applications/Schedule.cpp b/opm/parser/eclipse/Applications/Schedule.cpp index 962017a6b..0bb533ffb 100644 --- a/opm/parser/eclipse/Applications/Schedule.cpp +++ b/opm/parser/eclipse/Applications/Schedule.cpp @@ -11,7 +11,7 @@ #include -int main(int argc, char** argv) { +int main(int /* argc */, char** argv) { Opm::ParserPtr parser(new Opm::Parser()); std::string file = argv[1]; Opm::DeckConstPtr deck = parser->parseFile(file, false); diff --git a/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.cpp b/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.cpp index bac388745..fc7ce0181 100644 --- a/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.cpp +++ b/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.cpp @@ -163,7 +163,7 @@ namespace Opm { - std::vector EclipseGrid::createDVector(const std::vector& dims , size_t dim , const std::string& DKey , const std::string& DVKey, std::shared_ptr gridSection) { + std::vector EclipseGrid::createDVector(const std::vector& dims , size_t /* dim */, const std::string& DKey , const std::string& DVKey, std::shared_ptr gridSection) { size_t volume = dims[0] * dims[1] * dims[2]; size_t area = dims[0] * dims[1]; std::vector D; diff --git a/opm/parser/eclipse/Parser/ParserItem.cpp b/opm/parser/eclipse/Parser/ParserItem.cpp index 227157396..338235bf4 100644 --- a/opm/parser/eclipse/Parser/ParserItem.cpp +++ b/opm/parser/eclipse/Parser/ParserItem.cpp @@ -48,11 +48,11 @@ namespace Opm { return 0; } - const std::string& ParserItem::getDimension(size_t index) const { + const std::string& ParserItem::getDimension(size_t /* index */) const { throw std::invalid_argument("Should not call this ... \n"); } - void ParserItem::push_backDimension(const std::string& dimension) { + void ParserItem::push_backDimension(const std::string& /* dimension */) { throw std::invalid_argument("Should not call this ... \n"); } diff --git a/opm/parser/eclipse/Parser/createDefaultKeywordList.cpp b/opm/parser/eclipse/Parser/createDefaultKeywordList.cpp index d9948fcbf..320cb6133 100644 --- a/opm/parser/eclipse/Parser/createDefaultKeywordList.cpp +++ b/opm/parser/eclipse/Parser/createDefaultKeywordList.cpp @@ -240,7 +240,7 @@ void ensurePath( const char * file_name ) { } -int main(int argc , char ** argv) { +int main(int /* argc */, char ** argv) { const char * config_root = argv[1]; const char * source_file_name = argv[2]; const char * test_file_name = argv[3]; diff --git a/opm/parser/eclipse/Parser/tests/createInlineItemTest.cpp b/opm/parser/eclipse/Parser/tests/createInlineItemTest.cpp index 590feb7f7..c16909b6a 100644 --- a/opm/parser/eclipse/Parser/tests/createInlineItemTest.cpp +++ b/opm/parser/eclipse/Parser/tests/createInlineItemTest.cpp @@ -159,7 +159,7 @@ void endTest(std::ofstream& of) { } -int main(int argc , char ** argv) { +int main(int /* argc */ , char ** argv) { const char * test_src = argv[1]; const char * test_module = argv[2]; std::ofstream of( test_src ); diff --git a/opm/parser/eclipse/RawDeck/StarToken.hpp b/opm/parser/eclipse/RawDeck/StarToken.hpp index b964124f2..db469ee5b 100644 --- a/opm/parser/eclipse/RawDeck/StarToken.hpp +++ b/opm/parser/eclipse/RawDeck/StarToken.hpp @@ -32,7 +32,7 @@ namespace Opm { bool tokenContainsStar(const std::string& token); template - T readValueToken(const std::string& valueToken) { + T readValueToken(const std::string& /* valueToken */) { return 0; }