From c6428d58355c5c5857324ad56017d17e2e851176 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 17:10:50 +0000 Subject: [PATCH] build: Disable -Winline As noted in pressure-vessel, if the compiler decides not to inline a `static inline` function (type-safe macro-equivalent), that isn't really a bug. Signed-off-by: Simon McVittie <smcv@collabora.com> --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1935013c6..63f47bb59 100644 --- a/meson.build +++ b/meson.build @@ -66,7 +66,6 @@ warning_flags = [ '-Wformat-security', '-Wformat=2', '-Winit-self', - '-Winline', '-Wlogical-op', '-Wmissing-declarations', '-Wmissing-format-attribute', @@ -98,6 +97,7 @@ warning_cxxflags = warning_flags + [ ] no_warning_flags = [ + 'inline', 'missing-field-initializers', 'pedantic', 'sign-compare', -- GitLab