Skip to content

Commit 3df5928

Browse files
author
Greg Parker
authored
Merge pull request swiftlang#14417 from dcci/wallruntime
[Runtime] Enable -Wall for the builds.
2 parents 348f347 + d0d1a33 commit 3df5928

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ if(SWIFT_RUNTIME_USE_SANITIZERS)
1313
endif()
1414
endif()
1515

16+
# Build the runtime with -Wall to catch, e.g., uninitialized variables
17+
# warnings.
18+
list(APPEND SWIFT_RUNTIME_CXX_FLAGS "-Wall")
19+
1620
set(SWIFT_RUNTIME_CORE_CXX_FLAGS "${SWIFT_RUNTIME_CXX_FLAGS}")
1721
set(SWIFT_RUNTIME_CORE_LINK_FLAGS "${SWIFT_RUNTIME_LINK_FLAGS}")
1822

0 commit comments

Comments
 (0)