Verified Commit 805356a0 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Disable warnings about different signedness of pointer targets

When cross-compiling for Windows with mingw, then we want to ignore
warnings about different signedness of pointer targets. For example,
we use "char *", but the Windows API often expects an "unsigned char *".
parent c8e8f96b
Pipeline #231335 passed with stage
in 3 minutes and 7 seconds
......@@ -186,6 +186,11 @@ endif ()
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-braces -Wno-parentheses -Wno-ignored-qualifiers")
endif()
if(MINGW)
# we do not care about different signedness of passed pointer arguments
add_compile_options(-Wno-pointer-sign)
endif()
add_definitions(-DQT_NO_EMIT)
remove_definitions(-DQT_NO_FOREACH)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment