input_common: Treat warnings as errors
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
This commit is contained in:
parent
3a85bc1e77
commit
5c4774e8ce
8 changed files with 23 additions and 10 deletions
|
@ -31,6 +31,9 @@ add_library(input_common STATIC
|
|||
|
||||
if (MSVC)
|
||||
target_compile_options(input_common PRIVATE
|
||||
/W4
|
||||
/WX
|
||||
|
||||
# 'expression' : signed/unsigned mismatch
|
||||
/we4018
|
||||
# 'argument' : conversion from 'type1' to 'type2', possible loss of data (floating-point)
|
||||
|
@ -46,6 +49,7 @@ if (MSVC)
|
|||
)
|
||||
else()
|
||||
target_compile_options(input_common PRIVATE
|
||||
-Werror
|
||||
-Werror=conversion
|
||||
-Werror=ignored-qualifiers
|
||||
-Werror=implicit-fallthrough
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue