Moved the bad-function-cast compiler warning option out of the common flags and into

the nuttx and posix specific options files since this option cannot be used with
the qurt platform. There are header files in the hexagon sdk that fail this check.
This commit is contained in:
Eric Katzfey authored and Daniel Agar committed 2022-10-20 18:18:40 -04:00
1 parent 96e7ea7a08
commit 4afd19f037
3 files changed
+4 -1

No files matched your search

-1
View File
@@ -144,7 +144,6 @@ function(px4_add_common_flags)
list(APPEND c_flags
-fno-common
-Wbad-function-cast
-Wnested-externs
-Wstrict-prototypes
)
+2
View File
@@ -69,6 +69,8 @@ function(px4_os_add_flags)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-sized-deallocation>)
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wbad-function-cast>)
add_definitions(
-D__PX4_NUTTX
+2
View File
@@ -238,6 +238,8 @@ function(px4_os_add_flags)
endif()
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wbad-function-cast>)
endfunction()
#=============================================================================