diff --git a/CMakeLists.txt b/CMakeLists.txt index 43ac22ea2..331262603 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,10 @@ if(USING_GCC OR USING_CLANG) if(JERRY_MATH) jerry_add_compile_flags(-fno-builtin) endif() - jerry_add_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations shadow strict-prototypes undef old-style-definition) + jerry_add_compile_warnings(all extra format-nonliteral init-self sign-conversion format-security missing-declarations shadow strict-prototypes undef old-style-definition) + if(NOT "${PLATFORM}" STREQUAL "WINDOWS") + jerry_add_compile_warnings(conversion) + endif() jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes -Werror) endif()