diff options
| author | 2021-06-28 14:23:41 -0400 | |
|---|---|---|
| committer | 2021-06-28 14:24:28 -0400 | |
| commit | 248a146ab79b732cd02632f5ecf58d70ba3bce91 (patch) | |
| tree | 9a54a99c29c98e97eceab7ded8031cd1edd381d8 /src | |
| parent | video_core: Remove #pragma warning directives for external headers (diff) | |
| download | yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.gz yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.xz yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.zip | |
CMakeLists: Disable all warnings for external headers
This lets us avoid needing to wrap external headers with #pragma warning directives for warnings we treat as errors and avoids generating warnings for external code.
Thanks to MerryMage for pointing this out.
Diffstat (limited to '')
| -rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a41423895..ed94e5d4e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -45,6 +45,11 @@ if (MSVC) | |||
| 45 | /Zc:inline | 45 | /Zc:inline |
| 46 | /Zc:throwingNew | 46 | /Zc:throwingNew |
| 47 | 47 | ||
| 48 | # External headers diagnostics | ||
| 49 | /experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later | ||
| 50 | /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers | ||
| 51 | /external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers | ||
| 52 | |||
| 48 | # Warnings | 53 | # Warnings |
| 49 | /W3 | 54 | /W3 |
| 50 | /we4018 # 'expression': signed/unsigned mismatch | 55 | /we4018 # 'expression': signed/unsigned mismatch |