Skip to content

Commit 3fd0d78

Browse files
committed
add strict cast alignment warning for better type safety
1 parent 030e95d commit 3fd0d78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build-scripts/warnings.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ else ()
3636
# options benefit embedded system.
3737
add_compile_options (
3838
-Wdouble-promotion
39+
-Wcast-align=strict
3940
)
4041

4142
# waivers

0 commit comments

Comments
 (0)