build: Promote some warnings to errors
Some of the warnings we enable should really be errors, if we want to
have a decent C code base.
@@ -81,21 +81,21 @@ else
'-ffast-math',
'-fstrict-aliasing',
'-Wpointer-arith',
- '-Wmissing-declarations',
- '-Wformat=2',
'-Wstrict-prototypes',
- '-Wmissing-prototypes',
'-Wnested-externs',
'-Wold-style-definition',
'-Wunused',
- '-Wuninitialized',
- '-Wshadow',
'-Wmissing-noreturn',
'-Wmissing-format-attribute',
- '-Wredundant-decls',
'-Wlogical-op',
'-Wcast-align',
'-Wno-unused-local-typedefs',
+ '-Werror=redundant-decls',
+ '-Werror=missing-prototypes',
+ '-Werror=missing-declarations',
+ '-Werror=format=2',
+ '-Werror=uninitialized',
+ '-Werror=shadow',
'-Werror=implicit',
'-Werror=init-self',
'-Werror=main',
