cmake enable -Wcast-align and disable per module

This commit is contained in:
Daniel Agar
2019-03-16 11:47:15 -04:00
parent 13dba60149
commit b35d048566
68 changed files with 129 additions and 65 deletions
@@ -51,6 +51,7 @@ if (NOT "${PX4_PLATFORM}" MATCHES "nuttx")
work_thread.c
)
target_compile_definitions(work_queue PRIVATE MODULE_NAME="work_queue")
target_compile_options(work_queue PRIVATE -Wno-cast-align) # TODO: fix and enable
add_dependencies(work_queue prebuild_targets)
endif()