remove Wpacked and cleanup unused warning flags

This commit is contained in:
Daniel Agar
2016-05-19 21:49:34 +02:00
committed by Lorenz Meier
parent f58596bbcd
commit 2487dbfc92
26 changed files with 8 additions and 41 deletions
+1 -2
View File
@@ -35,9 +35,8 @@ px4_add_module(
MODULE modules__sensors
MAIN sensors
PRIORITY "SCHED_PRIORITY_MAX-5"
STACK_MAIN 1200
STACK_MAIN 1300
COMPILE_FLAGS
-Wno-type-limits
-O3
SRCS
sensors.cpp
+1 -1
View File
@@ -1945,7 +1945,7 @@ Sensors::rc_poll()
if (_parameters.rc_map_flightmode > 0) {
/* the number of valid slots equals the index of the max marker minus one */
const unsigned num_slots = manual_control_setpoint_s::MODE_SLOT_MAX;
const int num_slots = manual_control_setpoint_s::MODE_SLOT_MAX;
/* the half width of the range of a slot is the total range
* divided by the number of slots, again divided by two