Skip to content

Commit d8683e9

Browse files
jaccoo01adeaarm
authored andcommitted
Build: Make incompatible-pointer-types warning
On GCC14, incompatible-pointer-types has been upgraded from warning to an error, which causes build failures, particularly in the tests. Add a command line argument to the compiler to revert back to the GCC13 behaviour and treat it as a warning instead. Note that imcompatible-pointer-types is a warning that should definitely be fixed as can lead to unexpected behaviour, but for now this at least lets us build with GCC14. Change-Id: I8c985121a9cba094eb923ca043066b64ee3bc35a Signed-off-by: Jackson Cooper-Driver <[email protected]>
1 parent f39d5fd commit d8683e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

platform/ns/toolchain_ns_GNUARM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ add_compile_options(
8181
-Wno-format
8282
-Wno-unused-but-set-variable
8383
-Wnull-dereference
84+
-Wno-error=incompatible-pointer-types
8485
-c
8586
-fdata-sections
8687
-ffunction-sections

toolchain_GNUARM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ add_compile_options(
5454
-Wno-format
5555
-Wno-unused-but-set-variable
5656
-Wnull-dereference
57+
-Wno-error=incompatible-pointer-types
5758
-c
5859
-fdata-sections
5960
-ffunction-sections

0 commit comments

Comments
 (0)