Skip to content

Commit adb4880

Browse files
committed
Add warnings when shadowing occurs.
Add debug symbols even in release builds.
1 parent 7647b6b commit adb4880

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/CMakeCompiler.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ macro(setup_default_compiler_flags _project_name)
2727
endif()
2828

2929
target_compile_options(${_project_name} PRIVATE -Wall -Wextra) # Enable all warnings
30+
target_compile_options(${_project_name} PRIVATE -Wshadow) # Enable shadowing warnings
3031
target_compile_options(${_project_name} PRIVATE -Werror) # Treat warnings as errors
32+
33+
target_compile_options(${_project_name} PRIVATE -g) # Enable debug symbols
3134
endif()
3235
endmacro()

0 commit comments

Comments
 (0)