diff options
| author | 2019-06-06 14:31:22 -0400 | |
|---|---|---|
| committer | 2019-06-06 14:31:22 -0400 | |
| commit | 7322c8bd7cd6f8c3e0321b87f63791106606a4c3 (patch) | |
| tree | 671c9d17852d0fb9b81e40d23a219f5d6cce5b67 /src | |
| parent | Merge pull request #2551 from lioncash/dtor (diff) | |
| parent | yuzu/CMakeLists: Disable implicit QString->QUrl conversions (diff) | |
| download | yuzu-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.txt | 9 |
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 | ||
| 164 | if (YUZU_ENABLE_COMPATIBILITY_REPORTING) | 173 | if (YUZU_ENABLE_COMPATIBILITY_REPORTING) |