added warning flags
This commit is contained in:
parent
a0d5b23311
commit
3540adf022
@ -106,6 +106,15 @@ else()
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(WARNING_FLAGS
|
||||||
|
-Wall
|
||||||
|
-Wextra
|
||||||
|
-Wshadow=local
|
||||||
|
-Wimplicit-fallthrough=1
|
||||||
|
-Wno-unused-parameter
|
||||||
|
-Wno-psabi
|
||||||
|
)
|
||||||
|
|
||||||
# Required include paths to compile the FSFW
|
# Required include paths to compile the FSFW
|
||||||
target_include_directories(${LIB_FSFW_NAME} INTERFACE
|
target_include_directories(${LIB_FSFW_NAME} INTERFACE
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_SOURCE_DIR}
|
||||||
@ -122,5 +131,6 @@ target_include_directories(${LIB_FSFW_NAME} PRIVATE
|
|||||||
|
|
||||||
# Machine specific options can be set with the ABI_FLAGS variable.
|
# Machine specific options can be set with the ABI_FLAGS variable.
|
||||||
target_compile_options(${LIB_FSFW_NAME} PRIVATE
|
target_compile_options(${LIB_FSFW_NAME} PRIVATE
|
||||||
|
${WARNING_FLAGS}
|
||||||
${ABI_FLAGS}
|
${ABI_FLAGS}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user