[gnome-builder] build: add more -Werror and add some warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: add more -Werror and add some warnings
- Date: Sun, 17 Dec 2017 09:12:32 +0000 (UTC)
commit 838a1a4dfd67f99245571b8c19876f588f922a78
Author: Christian Hergert <chergert redhat com>
Date: Sun Dec 17 01:09:52 2017 -0800
build: add more -Werror and add some warnings
meson.build | 18 +++++++++++++++---
src/plugins/gdb/meson.build | 1 +
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8f5831b..7caf19a 100644
--- a/meson.build
+++ b/meson.build
@@ -90,7 +90,6 @@ global_c_args = []
test_c_args = [
'-Wcast-align',
'-Wdeclaration-after-statement',
- ['-Werror=format-security', '-Werror=format=2'],
'-Wformat-nonliteral',
'-Wformat-security',
'-Wmissing-include-dirs',
@@ -100,11 +99,24 @@ test_c_args = [
'-Wno-unused-parameter',
'-Wpointer-arith',
'-Wredundant-decls',
- '-Wshadow',
'-Wswitch-default',
'-Wswitch-enum',
'-Wuninitialized',
- '-Wundef',
+ ['-Werror=format-security', '-Werror=format=2' ],
+ '-Werror=empty-body',
+ '-Werror=implicit-function-declaration',
+ '-Werror=incompatible-pointer-types',
+ '-Werror=pointer-arith',
+ '-Werror=init-self',
+ '-Werror=int-conversion',
+ '-Werror=misleading-indentation',
+ '-Werror=missing-include-dirs',
+ '-Werror=overflow',
+ '-Werror=parenthesis',
+ '-Werror=return-type',
+ '-Werror=shadow',
+ '-Werror=strict-prototypes',
+ '-Werror=undef',
]
if get_option('buildtype') != 'plain'
test_c_args += '-fstack-protector-strong'
diff --git a/src/plugins/gdb/meson.build b/src/plugins/gdb/meson.build
index 96ecb74..df5a986 100644
--- a/src/plugins/gdb/meson.build
+++ b/src/plugins/gdb/meson.build
@@ -15,6 +15,7 @@ gdb_sources = [
gdbwire = static_library('gdbwire', ['gdbwire.c'],
c_args: [ '-Wno-redundant-decls',
'-Wno-switch-default',
+ '-Wno-missing-declarations',
'-Wno-declaration-after-statement' ],
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]