diff options
| author | 2019-06-05 15:43:55 -0400 | |
|---|---|---|
| committer | 2019-06-05 15:47:35 -0400 | |
| commit | b5e1e879229ca37332a73186924738b77181f666 (patch) | |
| tree | 1fdd0ccd540866ebb1050bf26145c0236231ac4e /src | |
| parent | Merge pull request #2510 from SciresM/desired_language (diff) | |
| download | yuzu-b5e1e879229ca37332a73186924738b77181f666.tar.gz yuzu-b5e1e879229ca37332a73186924738b77181f666.tar.xz yuzu-b5e1e879229ca37332a73186924738b77181f666.zip | |
yuzu/CMakeLists: Disable implicit type narrowing in connect() calls
Prevents hard-to-diagnose bugs from potentially occurring and requires
any type narrowing to be explicitly performed by our code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 3ea7b55d0..ec969a9a7 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt | |||
| @@ -159,6 +159,9 @@ 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 | ||
| 162 | ) | 165 | ) |
| 163 | 166 | ||
| 164 | if (YUZU_ENABLE_COMPATIBILITY_REPORTING) | 167 | if (YUZU_ENABLE_COMPATIBILITY_REPORTING) |