Browse Source

CMake: Set warning level and disable -Waddress-of-packet-member (#7693)

* CMake: Set warning level and disable -Waddress-of-packet-member

Mavlink fails terribly on the check for -Waddress-of-packet-member
but this is not a problem of QGC, if I don't remove this warning
it's impossible to look at the terminal for QGC warnings.
This needs to be fixed however, but this is not the place.
QGC4.4
Tomaz Canabrava 6 years ago committed by Daniel Agar
parent
commit
af113b5e9c
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -10,6 +10,10 @@ set(CMAKE_AUTOUIC ON) @@ -10,6 +10,10 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-Wall -Wextra -Wno-address-of-packed-member)
endif()
# CMake build type
# Debug Release RelWithDebInfo MinSizeRel Coverage
if (NOT CMAKE_BUILD_TYPE)

Loading…
Cancel
Save