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.
This commit is contained in:
Lucas De Marchi 2016-02-11 02:46:23 -02:00 committed by Andrew Tridgell
parent 6515a15843
commit a01b933cb9

View File

@ -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 += [