Skip to content

Commit 9c280b7

Browse files
CopilotAarC10
andcommitted
Fix CMake error: move -Wall directly to root CMakeLists.txt after project()
Co-authored-by: AarC10 <30483634+AarC10@users.noreply.github.com>
1 parent c73b9cb commit 9c280b7

3 files changed

Lines changed: 4 additions & 14 deletions

File tree

.github/STATIC_ANALYSIS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ west build -b native_sim app/your-app -- -DSNIPPET=compiler-warnings
5050

5151
## Global Compiler Warnings
5252

53-
All builds now include `-Wall` by default through the `cmake/CompilerWarnings.cmake` file.
53+
All builds now include `-Wall` by default through the root `CMakeLists.txt`.
5454
This ensures production code meets stricter quality standards.
5555

5656
## References

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
88

99
project(Backplane-Flight-Computer)
1010

11-
# Enable strict compiler warnings for all builds
12-
include(cmake/CompilerWarnings.cmake)
13-
1411
zephyr_syscall_include_directories(include)
1512

1613
zephyr_include_directories(include)
14+
15+
# Enable strict compiler warnings for all builds
16+
zephyr_compile_options(-Wall)
1717

1818
add_subdirectory(drivers)
1919
add_subdirectory(lib)

cmake/CompilerWarnings.cmake

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)