Add a warning flag

This commit is contained in:
Jeremy 2024-05-12 22:02:34 -05:00
parent 323ab5814e
commit 2e1f14c7de
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -240,7 +240,7 @@ target_include_directories(
target_compile_options(
${target_name}
PRIVATE
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Werror=return-type -Wundef>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Werror=return-type -Wundef -Wmaybe-uninitialized>
$<$<CXX_COMPILER_ID:GNU>:-Wuseless-cast>
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX /permissive->
)