diff options
| author | 2022-05-26 20:08:21 -0400 | |
|---|---|---|
| committer | 2022-06-13 18:19:23 -0400 | |
| commit | efc89c032b18d149308a1f8c1a371f503edb91d1 (patch) | |
| tree | dafbdc3a20ad07f24ee92c4583e3e84ecf01ab02 /src/shader_recompiler/CMakeLists.txt | |
| parent | externals: microprofile: Eliminate variable shadowing (diff) | |
| download | yuzu-efc89c032b18d149308a1f8c1a371f503edb91d1.tar.gz yuzu-efc89c032b18d149308a1f8c1a371f503edb91d1.tar.xz yuzu-efc89c032b18d149308a1f8c1a371f503edb91d1.zip | |
CMakeLists: Make variable shadowing a compile-time error
Now that the entire project is free of variable shadowing, we can enforce this as a compile time error to prevent any further introduction of this logic bug.
Diffstat (limited to 'src/shader_recompiler/CMakeLists.txt')
| -rw-r--r-- | src/shader_recompiler/CMakeLists.txt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt index 4c76ce1ea..ae1dbe619 100644 --- a/src/shader_recompiler/CMakeLists.txt +++ b/src/shader_recompiler/CMakeLists.txt | |||
| @@ -253,9 +253,6 @@ else() | |||
| 253 | -Werror | 253 | -Werror |
| 254 | -Werror=conversion | 254 | -Werror=conversion |
| 255 | -Werror=ignored-qualifiers | 255 | -Werror=ignored-qualifiers |
| 256 | -Werror=implicit-fallthrough | ||
| 257 | -Werror=shadow | ||
| 258 | -Werror=sign-compare | ||
| 259 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> | 256 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> |
| 260 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> | 257 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> |
| 261 | -Werror=unused-variable | 258 | -Werror=unused-variable |