aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Agar <daniel@agar.ca>2014-12-23 11:15:45 -0500
committerDaniel Agar <daniel@agar.ca>2014-12-23 11:18:36 -0500
commit5b600a815c13af56e879029196a24e544c110b97 (patch)
treeb0e0415dca52d3716bddf86321bfa1b36747cb29 /src
parentd14fdf896b0081403908599a3164d09941d363c9 (diff)
downloadpx4-firmware-5b600a815c13af56e879029196a24e544c110b97.tar.gz
px4-firmware-5b600a815c13af56e879029196a24e544c110b97.tar.bz2
px4-firmware-5b600a815c13af56e879029196a24e544c110b97.zip
Replace use of -Wno-error and only ignore specific warnings
Diffstat (limited to 'src')
-rw-r--r--src/examples/fixedwing_control/module.mk2
-rw-r--r--src/modules/attitude_estimator_ekf/module.mk4
-rw-r--r--src/modules/commander/module.mk3
-rw-r--r--src/modules/ekf_att_pos_estimator/module.mk3
-rw-r--r--src/modules/position_estimator_inav/module.mk3
-rw-r--r--src/modules/sdlog2/module.mk3
-rw-r--r--src/modules/vtol_att_control/module.mk3
-rw-r--r--src/systemcmds/mixer/module.mk3
-rw-r--r--src/systemcmds/mtd/module.mk3
-rw-r--r--src/systemcmds/tests/module.mk3
10 files changed, 19 insertions, 11 deletions
diff --git a/src/examples/fixedwing_control/module.mk b/src/examples/fixedwing_control/module.mk
index 8707776ae..f6c882ead 100644
--- a/src/examples/fixedwing_control/module.mk
+++ b/src/examples/fixedwing_control/module.mk
@@ -42,4 +42,4 @@ SRCS = main.c \
MODULE_STACKSIZE = 1200
-EXTRACFLAGS = -Wno-frame-larger-than
+EXTRACFLAGS = -Wframe-larger-than=1200
diff --git a/src/modules/attitude_estimator_ekf/module.mk b/src/modules/attitude_estimator_ekf/module.mk
index 96ba45242..3a3e1cc69 100644
--- a/src/modules/attitude_estimator_ekf/module.mk
+++ b/src/modules/attitude_estimator_ekf/module.mk
@@ -43,6 +43,6 @@ SRCS = attitude_estimator_ekf_main.cpp \
MODULE_STACKSIZE = 1200
-EXTRACFLAGS = -Wno-float-equal
+EXTRACFLAGS = -Wno-float-equal -Wframe-larger-than=3600
-EXTRACXXFLAGS = -Wno-frame-larger-than
+EXTRACXXFLAGS = -Wframe-larger-than=2200
diff --git a/src/modules/commander/module.mk b/src/modules/commander/module.mk
index caec1e869..dac2ce59a 100644
--- a/src/modules/commander/module.mk
+++ b/src/modules/commander/module.mk
@@ -52,4 +52,5 @@ MODULE_STACKSIZE = 1200
MAXOPTIMIZATION = -Os
-EXTRACXXFLAGS = -Wno-error
+EXTRACXXFLAGS = -Wframe-larger-than=1900
+
diff --git a/src/modules/ekf_att_pos_estimator/module.mk b/src/modules/ekf_att_pos_estimator/module.mk
index 07e70ddb3..4311fb3f9 100644
--- a/src/modules/ekf_att_pos_estimator/module.mk
+++ b/src/modules/ekf_att_pos_estimator/module.mk
@@ -42,4 +42,5 @@ SRCS = ekf_att_pos_estimator_main.cpp \
estimator_23states.cpp \
estimator_utilities.cpp
-EXTRACXXFLAGS = -Weffc++ -Wno-error
+EXTRACXXFLAGS = -Weffc++ -Wframe-larger-than=3000
+
diff --git a/src/modules/position_estimator_inav/module.mk b/src/modules/position_estimator_inav/module.mk
index 5ebdb721c..45c876299 100644
--- a/src/modules/position_estimator_inav/module.mk
+++ b/src/modules/position_estimator_inav/module.mk
@@ -42,4 +42,5 @@ SRCS = position_estimator_inav_main.c \
MODULE_STACKSIZE = 1200
-EXTRACFLAGS = -Wno-error
+EXTRACFLAGS = -Wframe-larger-than=3500
+
diff --git a/src/modules/sdlog2/module.mk b/src/modules/sdlog2/module.mk
index d7224b77a..f1118000e 100644
--- a/src/modules/sdlog2/module.mk
+++ b/src/modules/sdlog2/module.mk
@@ -46,4 +46,5 @@ MODULE_STACKSIZE = 1200
MAXOPTIMIZATION = -Os
-EXTRACFLAGS = -Wno-error
+EXTRACFLAGS = -Wframe-larger-than=1200
+
diff --git a/src/modules/vtol_att_control/module.mk b/src/modules/vtol_att_control/module.mk
index 02403ef76..0cf3072c8 100644
--- a/src/modules/vtol_att_control/module.mk
+++ b/src/modules/vtol_att_control/module.mk
@@ -40,4 +40,5 @@ MODULE_COMMAND = vtol_att_control
SRCS = vtol_att_control_main.cpp \
vtol_att_control_params.c
-EXTRACXXFLAGS = -Wno-error
+EXTRACXXFLAGS = -Wno-write-strings
+
diff --git a/src/systemcmds/mixer/module.mk b/src/systemcmds/mixer/module.mk
index 40ffb8f12..0fb899c67 100644
--- a/src/systemcmds/mixer/module.mk
+++ b/src/systemcmds/mixer/module.mk
@@ -42,4 +42,5 @@ MODULE_STACKSIZE = 4096
MAXOPTIMIZATION = -Os
-EXTRACXXFLAGS = -Wno-error
+EXTRACXXFLAGS = -Wframe-larger-than=2048
+
diff --git a/src/systemcmds/mtd/module.mk b/src/systemcmds/mtd/module.mk
index c3baffc5d..bca1cdcc1 100644
--- a/src/systemcmds/mtd/module.mk
+++ b/src/systemcmds/mtd/module.mk
@@ -7,4 +7,5 @@ SRCS = mtd.c 24xxxx_mtd.c
MAXOPTIMIZATION = -Os
-EXTRACFLAGS = -Wno-error \ No newline at end of file
+EXTRACFLAGS = -Wno-error
+
diff --git a/src/systemcmds/tests/module.mk b/src/systemcmds/tests/module.mk
index 1ea2a6620..6eed3922c 100644
--- a/src/systemcmds/tests/module.mk
+++ b/src/systemcmds/tests/module.mk
@@ -35,4 +35,5 @@ SRCS = test_adc.c \
test_mount.c \
test_mtd.c
-EXTRACXXFLAGS = -Wno-error
+EXTRACXXFLAGS = -Wframe-larger-than=2500
+