Fix warning

This commit is contained in:
Baptiste Wicht 2014-10-27 19:25:44 +01:00
parent 65093e0432
commit cc65ebb4fc
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ if(CXXOPTS_USE_UNICODE_HELP)
pkg_check_modules(ICU REQUIRED icu-uc)
set(CXXOPTS_LINKER_LIBRARIES "${ICU_LIBRARIES}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCXXOPTS_USE_UNICODE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -DCXXOPTS_USE_UNICODE")
endif()

View File

@ -998,7 +998,7 @@ Options::parse(int& argc, char**& argv)
{
const std::string& s = result[4];
for (int i = 0; i != s.size(); ++i)
for (std::size_t i = 0; i != s.size(); ++i)
{
std::string name(1, s[i]);
auto iter = m_options.find(name);