Skip to content

Commit 732d5e5

Browse files
committed
Fix warning on Linux
1 parent ff0c454 commit 732d5e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/ww898/utf_converters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ struct conv_strategy<Utf, Outf, It, Oit, true> final
344344
{
345345
static void func(It it, It const eit, Oit oit)
346346
{
347-
if (eit - it >= Utf::max_supported_symbol_size)
347+
if (static_cast<size_t>(eit - it) >= Utf::max_supported_symbol_size)
348348
{
349349
auto const fast_eit = eit - Utf::max_supported_symbol_size;
350350
while (it < fast_eit)

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
3232
"$<$<CONFIG:Release>:/Oi>"
3333
"$<$<CONFIG:Release>:/Oy->")
3434
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
35-
target_compile_options(utf-cpp-test PRIVATE -std=c++11)
35+
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -Wall -Wextra)
3636
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
37-
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -stdlib=libc++)
37+
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -stdlib=libc++ -Wall -Wextra)
3838
set_target_properties(utf-cpp-test PROPERTIES LINK_FLAGS -stdlib=libc++)
3939
endif()

0 commit comments

Comments
 (0)