[json-glib: 7/11] build: Clean up compiler flags
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib: 7/11] build: Clean up compiler flags
- Date: Mon, 10 Jul 2017 15:22:41 +0000 (UTC)
commit 6aa6a2e894c1f6aee25095dd0dfd94d25a3d45f8
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 10 10:53:57 2017 +0100
build: Clean up compiler flags
We want more errors, and fewer warnings.
Keeping the list of compiler flags sorted also allows us to quickly scan
for what kind of flags we use.
meson.build | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/meson.build b/meson.build
index 631116c..6a74455 100644
--- a/meson.build
+++ b/meson.build
@@ -78,38 +78,38 @@ if cc.get_id() == 'msvc'
]
elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_cflags = [
- '-Wpointer-arith',
+ '-Wcast-align',
+ '-Wlogical-op',
'-Wmissing-declarations',
- '-Wformat=2',
- '-Wstrict-prototypes',
+ '-Wmissing-format-attribute',
'-Wmissing-prototypes',
- '-Wnested-externs',
+ '-Wmissing-noreturn',
'-Wold-style-definition',
- '-Wdeclaration-after-statement',
- '-Wunused',
- '-Wno-uninitialized',
+ '-Wpointer-arith',
'-Wshadow',
- '-Wcast-align',
- '-Wmissing-noreturn',
- '-Wmissing-format-attribute',
- '-Wlogical-op',
+ '-Wstrict-prototypes',
+ '-Wunused',
'-Wno-discarded-qualifiers',
+ '-Wno-int-conversion',
+ '-fno-strict-aliasing',
+ '-Wno-uninitialized',
+ '-Werror=address',
+ '-Werror=array-bounds',
+ '-Werror=empty-body',
+ '-Werror=format=2',
'-Werror=implicit',
- '-Werror=nonnull',
'-Werror=init-self',
+ '-Werror=int-to-pointer-cast',
'-Werror=main',
'-Werror=missing-braces',
- '-Werror=sequence-point',
+ '-Werror=nested-externs',
+ '-Werror=nonnull',
+ '-Werror=pointer-to-int-cast',
'-Werror=return-type',
+ '-Werror=sequence-point',
'-Werror=trigraphs',
- '-Werror=array-bounds',
+ '-Werror=undef',
'-Werror=write-strings',
- '-Werror=address',
- '-Werror=int-to-pointer-cast',
- '-Werror=pointer-to-int-cast',
- '-Werror=empty-body',
- '-fno-strict-aliasing',
- '-Wno-int-conversion',
]
else
test_cflags = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]