mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
[cmake] gcc.cmake: Add -Werror.
Note that a bunch of warnings-as-errors are currently suppressed. They will be removed as the warnings are fixed.
This commit is contained in:
parent
452eaf4f55
commit
57b586ef91
@ -273,6 +273,11 @@ IF(CFLAG_OPTIMIZE_FTREE_VECTORIZE)
|
||||
ENDIF()
|
||||
ENDIF(CFLAG_OPTIMIZE_FTREE_VECTORIZE)
|
||||
|
||||
# Add "-Werror" *after* checking for everything else.
|
||||
SET(RP_IGNORE_ERRORS "-Wno-error=unknown-pragmas -Wno-error=address-of-packed-member -Wno-error=address -Wno-error=attributes -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=ignored-qualifiers -Wno-error=missing-field-initializers -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=type-limits -Wno-error=empty-body -Wno-error=shift-negative-value -Wno-error=deprecated-declarations")
|
||||
SET(RP_C_FLAGS_COMMON "${RP_C_FLAGS_COMMON} -Werror ${RP_IGNORE_ERRORS}")
|
||||
SET(RP_CXX_FLAGS_COMMON "${RP_CXX_FLAGS_COMMON} -Werror ${RP_IGNORE_ERRORS}")
|
||||
|
||||
### Debug/Release flags ###
|
||||
|
||||
SET(RP_C_FLAGS_DEBUG "${CFLAG_OPTIMIZE_DEBUG} -ggdb -DDEBUG -D_DEBUG")
|
||||
|
Loading…
Reference in New Issue
Block a user