From 5d57e445b5b3296a7bc2946ce2bd2678c94da33c Mon Sep 17 00:00:00 2001 From: Guerra Mattia Date: Wed, 2 Mar 2016 16:25:00 +0100 Subject: TCLAP: removed some unused variables leading to compiling Werror issues Signed-off-by: Guerra Mattia --- tclap-1.2.1/include/tclap/CmdLine.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tclap-1.2.1/include/tclap/CmdLine.h b/tclap-1.2.1/include/tclap/CmdLine.h index e8d7da1..91d0d0e 100644 --- a/tclap-1.2.1/include/tclap/CmdLine.h +++ b/tclap-1.2.1/include/tclap/CmdLine.h @@ -468,9 +468,6 @@ inline void CmdLine::preparse(int argc, const char * const * argv) inline void CmdLine::preparse(std::vector& args) { - bool shouldExit = false; - int estat = 0; - try { _progName = args.front(); @@ -480,13 +477,11 @@ inline void CmdLine::preparse(std::vector& args) for (int i = 0; static_cast(i) < args.size(); i++) { - bool matched = false; for (ArgListIterator it = _argList.begin(); it != _argList.end(); it++) { if ( (*it)->processArg( &i, args ) ) { requiredCount += _xorHandler.check( *it ); - matched = true; break; } } -- cgit v1.2.1