mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:53:34 +08:00
remove Wpacked and cleanup unused warning flags
This commit is contained in:
committed by
Lorenz Meier
parent
f58596bbcd
commit
2487dbfc92
@@ -35,7 +35,6 @@ px4_add_module(
|
||||
MAIN navigator
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
-Wno-sign-compare
|
||||
-Os
|
||||
SRCS
|
||||
navigator_main.cpp
|
||||
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
control::BlockParamInt _param_max_hor_distance;
|
||||
control::BlockParamInt _param_max_ver_distance;
|
||||
|
||||
unsigned _outside_counter;
|
||||
int _outside_counter;
|
||||
|
||||
bool inside(double lat, double lon, float altitude);
|
||||
bool inside(const struct vehicle_global_position_s &global_position);
|
||||
|
||||
@@ -1149,7 +1149,7 @@ Mission::reset_offboard_mission(struct mission_s &mission)
|
||||
if (mission.count > 0) {
|
||||
dm_item_t dm_current = DM_KEY_WAYPOINTS_OFFBOARD(mission.dataman_id);
|
||||
|
||||
for (int index = 0; index < mission.count; index++) {
|
||||
for (unsigned index = 0; index < mission.count; index++) {
|
||||
struct mission_item_s item;
|
||||
const ssize_t len = sizeof(struct mission_item_s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user