core/cmake: Enforce Wclass-memaccess

Treat -Wclass-memaccess as an error.
This commit is contained in:
ReinUsesLisp 2021-01-15 05:35:33 -03:00
parent f8650a9580
commit 5f517e3e16

View file

@ -645,6 +645,7 @@ else()
-Werror=implicit-fallthrough -Werror=implicit-fallthrough
-Werror=sign-compare -Werror=sign-compare
$<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>
$<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
$<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>