diff options
Diffstat (limited to 'src/input_common/CMakeLists.txt')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 4b91b88ce..cc6f0ffc0 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -18,6 +18,8 @@ add_library(input_common STATIC | |||
| 18 | drivers/touch_screen.h | 18 | drivers/touch_screen.h |
| 19 | drivers/udp_client.cpp | 19 | drivers/udp_client.cpp |
| 20 | drivers/udp_client.h | 20 | drivers/udp_client.h |
| 21 | drivers/virtual_amiibo.cpp | ||
| 22 | drivers/virtual_amiibo.h | ||
| 21 | helpers/stick_from_buttons.cpp | 23 | helpers/stick_from_buttons.cpp |
| 22 | helpers/stick_from_buttons.h | 24 | helpers/stick_from_buttons.h |
| 23 | helpers/touch_from_buttons.cpp | 25 | helpers/touch_from_buttons.cpp |
| @@ -37,21 +39,14 @@ add_library(input_common STATIC | |||
| 37 | if (MSVC) | 39 | if (MSVC) |
| 38 | target_compile_options(input_common PRIVATE | 40 | target_compile_options(input_common PRIVATE |
| 39 | /W4 | 41 | /W4 |
| 40 | /WX | ||
| 41 | 42 | ||
| 42 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | 43 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data |
| 43 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data | ||
| 44 | /we4245 # 'conversion': conversion from 'type1' to 'type2', signed/unsigned mismatch | ||
| 45 | /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data | 44 | /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data |
| 45 | /we4800 # Implicit conversion from 'type' to bool. Possible information loss | ||
| 46 | ) | 46 | ) |
| 47 | else() | 47 | else() |
| 48 | target_compile_options(input_common PRIVATE | 48 | target_compile_options(input_common PRIVATE |
| 49 | -Werror | ||
| 50 | -Werror=conversion | 49 | -Werror=conversion |
| 51 | -Werror=ignored-qualifiers | ||
| 52 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> | ||
| 53 | $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> | ||
| 54 | -Werror=unused-variable | ||
| 55 | ) | 50 | ) |
| 56 | endif() | 51 | endif() |
| 57 | 52 | ||