Commit cc65ebb4fc5a882e210f33bc53d767a809946457
1 parent
65093e04
Fix warning
Showing
2 changed files
with
2 additions
and
2 deletions
CMakeLists.txt
| @@ -34,7 +34,7 @@ if(CXXOPTS_USE_UNICODE_HELP) | @@ -34,7 +34,7 @@ if(CXXOPTS_USE_UNICODE_HELP) | ||
| 34 | pkg_check_modules(ICU REQUIRED icu-uc) | 34 | pkg_check_modules(ICU REQUIRED icu-uc) |
| 35 | 35 | ||
| 36 | set(CXXOPTS_LINKER_LIBRARIES "${ICU_LIBRARIES}") | 36 | set(CXXOPTS_LINKER_LIBRARIES "${ICU_LIBRARIES}") |
| 37 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCXXOPTS_USE_UNICODE") | 37 | + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -DCXXOPTS_USE_UNICODE") |
| 38 | 38 | ||
| 39 | endif() | 39 | endif() |
| 40 | 40 |
src/cxxopts.hpp
| @@ -998,7 +998,7 @@ Options::parse(int& argc, char**& argv) | @@ -998,7 +998,7 @@ Options::parse(int& argc, char**& argv) | ||
| 998 | { | 998 | { |
| 999 | const std::string& s = result[4]; | 999 | const std::string& s = result[4]; |
| 1000 | 1000 | ||
| 1001 | - for (int i = 0; i != s.size(); ++i) | 1001 | + for (std::size_t i = 0; i != s.size(); ++i) |
| 1002 | { | 1002 | { |
| 1003 | std::string name(1, s[i]); | 1003 | std::string name(1, s[i]); |
| 1004 | auto iter = m_options.find(name); | 1004 | auto iter = m_options.find(name); |