Skip to content

Commit 2ab57f9

Browse files
committed
[cmake] Add -Wshadow flag
1 parent 4fc480f commit 2ab57f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
4848
endif()
4949

5050
# Warnings
51-
set(WARNING_FLAGS "-Wall -Wextra -Wconversion -Werror")
51+
set(WARNING_FLAGS "-Wall -Wextra -Wconversion -Wshadow -Werror")
5252

5353
set(COMMON_FLAGS "${COVERAGE_FLAGS} -finline-functions")
5454
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT} ${WARNING_FLAGS} ${COMMON_FLAGS} -Og -g3 -ggdb3 -DDEBUG -fno-omit-frame-pointer")
@@ -75,7 +75,7 @@ endif()
7575
# 3rd party libraries
7676
add_subdirectory(3rdparty)
7777

78-
# YaCppRtos sources
78+
# Sources
7979
add_subdirectory(src)
8080

8181
# Unit tests

0 commit comments

Comments
 (0)