diff --git a/modules/core/src/cmdparser.cpp b/modules/core/src/cmdparser.cpp index cc173ec478..aee5ff9d93 100644 --- a/modules/core/src/cmdparser.cpp +++ b/modules/core/src/cmdparser.cpp @@ -100,7 +100,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c std::map >::iterator it; size_t flagPosition; int currentIndex = 1; - bool isFound = false; + //bool isFound = false; bool withNoKey = false; bool hasValueThroughEq = false; @@ -169,7 +169,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c if (((curName == keysVector[0]) || (curName == keysVector[1])) && hasValueThroughEq) { it->second[0] = buffer; - isFound = true; + //isFound = true; break; } @@ -180,7 +180,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c )) { it->second[0] = "true"; - isFound = true; + //isFound = true; break; } @@ -188,7 +188,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c ((curName == keysVector[0]) || (curName == keysVector[1]))) { it->second[0] = argv[++i]; - isFound = true; + //isFound = true; break; } @@ -200,7 +200,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c { it->second[0] = curName; currentIndex++; - isFound = true; + //isFound = true; break; } } @@ -208,7 +208,7 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const c withNoKey = false; hasValueThroughEq = false; - isFound = false; + //isFound = false; } } diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index cb3028b7b0..cf16839de2 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -259,6 +259,10 @@ set_target_properties(${the_module} PROPERTIES LINK_INTERFACE_LIBRARIES "") ocv_add_precompiled_headers(${the_module}) +if(CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") +endif() + if(WIN32) #copy ffmpeg dll to the output folder if(MSVC64 OR MINGW64)