Verified Commit 619ecb1f 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 b0e8920d
......@@ -167,6 +167,10 @@ target_sources(KF5Libkleo PRIVATE # make this a separate lib.
ui/newkeyapprovaldialog.h
)
if(MINGW)
# we do not care about different signedness of passed pointer arguments
set_source_files_properties(utils/gnupg-registry.c PROPERTIES COMPILE_OPTIONS "-Wno-pointer-sign")
endif()
target_link_libraries(KF5Libkleo PUBLIC Gpgmepp PRIVATE Qt::Widgets
KF5::I18n
......
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