From 6d5af5fe770566fae2225b983044ea428d0bdb5b Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 16:56:53 +0000 Subject: [PATCH] build: Enable extra warning flags for C++ too Signed-off-by: Simon McVittie <smcv@collabora.com> --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index a577a5200..afc01e046 100644 --- a/meson.build +++ b/meson.build @@ -110,8 +110,11 @@ no_warning_cxxflags = no_warning_flags + [ ] c_compiler = meson.get_compiler('c') +cpp_compiler = meson.get_compiler('cpp') supported_warning_cflags = c_compiler.get_supported_arguments(warning_cflags) add_project_arguments(supported_warning_cflags, language : 'c') +supported_warning_cxxflags = cpp_compiler.get_supported_arguments(warning_cxxflags) +add_project_arguments(supported_warning_cxxflags, language : 'cpp') add_project_link_arguments( c_compiler.get_supported_link_arguments( -- GitLab