[libsoup] build: Build with more warnings
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] build: Build with more warnings
- Date: Fri, 5 Mar 2021 18:23:54 +0000 (UTC)
commit bad292d88187e6218f25e68e9e91df836fbd1caf
Author: Patrick Griffis <pgriffis igalia com>
Date: Fri Mar 5 12:14:54 2021 -0600
build: Build with more warnings
meson.build | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0162a59d..ae495817 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,10 @@ project('libsoup', 'c',
version: '2.99.1',
meson_version : '>= 0.53',
license : 'LGPL2',
- default_options : 'c_std=c99')
+ default_options : [
+ 'c_std=c99',
+ 'warning_level=2',
+ ])
gnome = import('gnome')
@@ -53,7 +56,6 @@ if cc.get_id() == 'msvc'
add_project_arguments(cc.get_supported_arguments(['/utf-8']), language: 'c')
else
test_cflags = [
- '-Wall',
'-Wmissing-include-dirs',
'-Wpointer-arith',
'-Winit-self',
@@ -65,6 +67,10 @@ else
'-Wno-format-zero-length',
'-Wno-missing-include-dirs',
'-Wno-typedef-redefinition',
+ '-Wno-unused-parameter',
+ '-Wno-sign-compare',
+ '-Wno-cast-function-type',
+ '-Wno-missing-field-initializers',
]
if get_option('b_sanitize') == 'address' or get_option('b_sanitize') == 'address,undefined' or \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]