remove Wpacked and cleanup unused warning flags

This commit is contained in:
Daniel Agar
2016-05-19 00:19:09 -04:00
committed by Lorenz Meier
parent f58596bbcd
commit 2487dbfc92
26 changed files with 8 additions and 41 deletions
-2
View File
@@ -36,8 +36,6 @@ px4_add_module(
STACK_MAIN 4096
STACK_MAX 2450
COMPILE_FLAGS
-Wno-attributes
-Wno-packed
-Os
SRCS
commander.cpp
-4
View File
@@ -36,11 +36,7 @@ px4_add_module(
STACK_MAIN 1200
STACK_MAX 1500
COMPILE_FLAGS
-Wno-attributes
-Wno-packed
-DMAVLINK_COMM_NUM_BUFFERS=4
-Wno-packed
-Wno-tautological-constant-out-of-range-compare
-Os
SRCS
mavlink.c
@@ -36,9 +36,6 @@ px4_add_module(
STACK_MAIN 5000
COMPILE_FLAGS
-DMAVLINK_FTP_UNIT_TEST
-Wno-attributes
-Wno-packed
-Wno-packed
-Os
SRCS
mavlink_tests.cpp
-1
View File
@@ -35,7 +35,6 @@ px4_add_module(
MAIN navigator
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-sign-compare
-Os
SRCS
navigator_main.cpp
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+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
-3
View File
@@ -40,9 +40,6 @@ px4_add_module(
MODULE modules__simulator
MAIN simulator
COMPILE_FLAGS
-Wno-attributes
-Wno-packed
-Wno-packed
SRCS
${SIMULATOR_SRCS}
DEPENDS
-2
View File
@@ -80,8 +80,6 @@ px4_add_module(
MODULE modules__systemlib
COMPILE_FLAGS
-Wno-sign-compare
-Wno-attributes
-Wno-packed
-Os
SRCS ${SRCS}
DEPENDS
+1 -1
View File
@@ -173,7 +173,7 @@ param_assert_locked(void)
static bool
handle_in_range(param_t param)
{
int count = get_param_info_count();
unsigned count = get_param_info_count();
return (count && param < count);
}
-3
View File
@@ -59,9 +59,6 @@ px4_add_module(
STACK_MAIN 3200
STACK_MAX 1500
COMPILE_FLAGS
-Wno-attributes
-Wno-packed
-Wno-deprecated-declarations
-Os
SRCS
# Main