From a01b933cb91ca2ca6bbc8ab3ac9662cebb4f8d7c Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 11 Feb 2016 02:46:23 -0200 Subject: [PATCH] waf: add missing warnings from AP_Common.h Copy the missing warnings from AP_Common.h and reorder the warnings to be more clear on intent. This will later let us remove the warnings from the header. --- Tools/ardupilotwaf/boards.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 7cff12181e..ac71892ecd 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -37,13 +37,15 @@ PROJECT_ENV.CFLAGS += [ '-fdata-sections', '-fsigned-char', - '-Wformat', '-Wall', + '-Wextra', + '-Wformat', '-Wshadow', '-Wpointer-arith', '-Wcast-align', - '-Wno-unused-parameter', '-Wno-missing-field-initializers', + '-Wno-unused-parameter', + '-Wno-redundant-decls', ] PROJECT_ENV.CXXFLAGS += [ @@ -54,20 +56,22 @@ PROJECT_ENV.CXXFLAGS += [ '-fno-exceptions', '-fsigned-char', - '-Wformat', '-Wall', + '-Wextra', + '-Wformat', '-Wshadow', '-Wpointer-arith', '-Wcast-align', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-Wno-reorder', + '-Wno-redundant-decls', '-Werror=format-security', '-Werror=array-bounds', - '-Wfatal-errors', '-Werror=unused-but-set-variable', '-Werror=uninitialized', '-Werror=init-self', + '-Wfatal-errors', ] PROJECT_ENV.LINKFLAGS += [