Skip to content

Commit

Permalink
Silence address of packed member warning from MAVLink headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarrk committed Jun 23, 2024
1 parent 5fc294c commit 2afdc99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,8 @@ install(
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Triggered a lot in MAVLink headers
target_compile_options(appmarsh-manager PRIVATE -Wno-address-of-packed-member)
endif()

0 comments on commit 2afdc99

Please sign in to comment.