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 2022-10-20 11:11:36 -07:00 committed by Daniel Agar
parent 96e7ea7a08
commit 4afd19f037
3 changed files with 4 additions and 1 deletions

View File

@ -144,7 +144,6 @@ function(px4_add_common_flags)
list(APPEND c_flags
-fno-common
-Wbad-function-cast
-Wnested-externs
-Wstrict-prototypes
)

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

View File

@ -238,6 +238,8 @@ function(px4_os_add_flags)
endif()
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wbad-function-cast>)
endfunction()
#=============================================================================