summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-06-06 14:31:22 -0400
committerGravatar GitHub2019-06-06 14:31:22 -0400
commit7322c8bd7cd6f8c3e0321b87f63791106606a4c3 (patch)
tree671c9d17852d0fb9b81e40d23a219f5d6cce5b67 /src
parentMerge pull request #2551 from lioncash/dtor (diff)
parentyuzu/CMakeLists: Disable implicit QString->QUrl conversions (diff)
downloadyuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.gz
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.tar.xz
yuzu-7322c8bd7cd6f8c3e0321b87f63791106606a4c3.zip
Merge pull request #2550 from lioncash/frontend
yuzu/CMakeLists: Pass compilation flags that make it more difficult to cause bugs in Qt code
Diffstat (limited to 'src')
-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
159 # Disable implicit conversions from/to C strings 159 # Disable implicit conversions from/to C strings
160 -DQT_NO_CAST_FROM_ASCII 160 -DQT_NO_CAST_FROM_ASCII
161 -DQT_NO_CAST_TO_ASCII 161 -DQT_NO_CAST_TO_ASCII
162
163 # Disable implicit type narrowing in signal/slot connect() calls.
164 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
165
166 # Disable unsafe overloads of QProcess' start() function.
167 -DQT_NO_PROCESS_COMBINED_ARGUMENT_START
168
169 # Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
170 -DQT_NO_URL_CAST_FROM_STRING
162) 171)
163 172
164if (YUZU_ENABLE_COMPATIBILITY_REPORTING) 173if (YUZU_ENABLE_COMPATIBILITY_REPORTING)