diff options
| author | 2022-05-26 20:08:21 -0400 | |
|---|---|---|
| committer | 2022-06-13 18:19:23 -0400 | |
| commit | efc89c032b18d149308a1f8c1a371f503edb91d1 (patch) | |
| tree | dafbdc3a20ad07f24ee92c4583e3e84ecf01ab02 /src/input_common | |
| 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/input_common')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index d4fa69a77..48e799cf5 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -44,7 +44,6 @@ else() | |||
| 44 | -Werror | 44 | -Werror |
| 45 | -Werror=conversion | 45 | -Werror=conversion |
| 46 | -Werror=ignored-qualifiers | 46 | -Werror=ignored-qualifiers |
| 47 | -Werror=shadow | ||
| 48 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> | 47 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> |
| 49 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> | 48 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> |
| 50 | -Werror=unused-variable | 49 | -Werror=unused-variable |