mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 10:50:35 +08:00
re-enable Werror
This commit is contained in:
@@ -35,7 +35,7 @@ px4_add_module(
|
||||
MAIN attitude_estimator_ekf
|
||||
STACK 1200
|
||||
COMPILE_FLAGS
|
||||
-Wframe-larger-than=2400
|
||||
-Wframe-larger-than=3000
|
||||
-Wno-float-equal
|
||||
|
||||
SRCS
|
||||
|
||||
@@ -34,7 +34,7 @@ set(MODULE_CFLAGS -Os)
|
||||
|
||||
if(NOT ${OS} STREQUAL "qurt")
|
||||
list(APPEND MODULE_CFLAGS
|
||||
-Wframe-larger-than=2200)
|
||||
-Wframe-larger-than=2600)
|
||||
endif()
|
||||
px4_add_module(
|
||||
MODULE modules__commander
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
set(MODULE_CFLAGS -Weffc++)
|
||||
set(MODULE_CFLAGS )
|
||||
if(NOT ${OS} STREQUAL "qurt")
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3400)
|
||||
endif()
|
||||
|
||||
@@ -35,7 +35,6 @@ px4_add_module(
|
||||
MAIN land_detector
|
||||
STACK 1200
|
||||
COMPILE_FLAGS
|
||||
-Weffc++
|
||||
-Os
|
||||
|
||||
SRCS
|
||||
|
||||
@@ -35,11 +35,11 @@ px4_add_module(
|
||||
MAIN mavlink
|
||||
STACK 1200
|
||||
COMPILE_FLAGS
|
||||
-Weffc++
|
||||
-Wno-attributes
|
||||
-Wno-packed
|
||||
-DMAVLINK_COMM_NUM_BUFFERS=3
|
||||
-Wno-packed
|
||||
-Wframe-larger-than=2000
|
||||
-Os
|
||||
SRCS
|
||||
mavlink.c
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
px4_add_module(
|
||||
MODULE modules__mc_att_control_multiplatform
|
||||
MAIN mc_att_control_m
|
||||
COMPILE_FLAGS
|
||||
-Wframe-larger-than=1300
|
||||
SRCS
|
||||
mc_att_control_main.cpp
|
||||
mc_att_control_start_nuttx.cpp
|
||||
|
||||
@@ -34,7 +34,7 @@ px4_add_module(
|
||||
MODULE modules__mc_pos_control_multiplatform
|
||||
MAIN mc_pos_control_m
|
||||
COMPILE_FLAGS
|
||||
-Wframe-larger-than=1200
|
||||
-Wframe-larger-than=1900
|
||||
|
||||
SRCS
|
||||
mc_pos_control_main.cpp
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
############################################################################
|
||||
set(MODULE_CFLAGS)
|
||||
if(NOT ${OS} STREQUAL "qurt")
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3800)
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3900)
|
||||
endif()
|
||||
px4_add_module(
|
||||
MODULE modules__position_estimator_inav
|
||||
|
||||
@@ -40,10 +40,10 @@ px4_add_module(
|
||||
MODULE modules__simulator
|
||||
MAIN simulator
|
||||
COMPILE_FLAGS
|
||||
-Weffc++
|
||||
-Wno-attributes
|
||||
-Wno-packed
|
||||
-Wno-packed
|
||||
-Wframe-larger-than=1500
|
||||
|
||||
SRCS
|
||||
${SIMULATOR_SRCS}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
set(uavcan_c_flags ${c_flags})
|
||||
list(REMOVE_ITEM uavcan_c_flags -std=gnu++0x -D__CUSTOM_FILE_IO__)
|
||||
set(uavcan_cxx_flags ${cxx_flags})
|
||||
list(REMOVE_ITEM uavcan_cxx_flags -std=gnu++0x -std=c++11 -D__CUSTOM_FILE_IO__)
|
||||
list(REMOVE_ITEM uavcan_cxx_flags -std=gnu++0x -std=c++11 -Wundef -Werror -D__CUSTOM_FILE_IO__)
|
||||
set(uavcan_deps git_uavcan)
|
||||
set(uavcan_platform generic)
|
||||
|
||||
@@ -94,6 +94,8 @@ px4_add_module(
|
||||
MAIN uavcan
|
||||
STACK 3200
|
||||
COMPILE_FLAGS
|
||||
-Wframe-larger-than=1500
|
||||
-Wno-deprecated-declarations
|
||||
-O3
|
||||
SRCS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user