summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2019-06-06 20:31:22 +0200
committerGitHub <noreply@github.com>2019-06-06 20:31:22 +0200
commit7322c8bd7cd6f8c3e0321b87f63791106606a4c3 (patch)
tree671c9d17852d0fb9b81e40d23a219f5d6cce5b67
parentMerge pull request #2551 from lioncash/dtor (diff)
parentyuzu/CMakeLists: Disable implicit QString->QUrl conversions (diff)
downloadyuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.gz
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.bz2
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.lz
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.xz
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.zst
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.zip
-rw-r--r--src/yuzu/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 3ea7b55d0..3dc0e47d0 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -159,6 +159,15 @@ target_compile_definitions(yuzu PRIVATE
# Disable implicit conversions from/to C strings
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
+
+ # Disable implicit type narrowing in signal/slot connect() calls.
+ -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
+
+ # Disable unsafe overloads of QProcess' start() function.
+ -DQT_NO_PROCESS_COMBINED_ARGUMENT_START
+
+ # Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
+ -DQT_NO_URL_CAST_FROM_STRING
)
if (YUZU_ENABLE_COMPATIBILITY_REPORTING)