From c2315323f44b3feb8f8fb517f5bec49437b6e120 Mon Sep 17 00:00:00 2001 From: Eric Culp Date: Fri, 26 Jul 2019 11:46:17 -0700 Subject: [PATCH] meson.build: fix builds with --buildtype=plain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building with --buildtype=plain, the build fails with the following error: cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security] -Werror=format-security was recently added in 43def1b3a5a by #745 --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index ccd2b1e4..dd510642 100644 --- a/meson.build +++ b/meson.build @@ -27,6 +27,7 @@ cc = meson.get_compiler('c') cflags = ['-Wno-unused-parameter', '-fvisibility=hidden', '-Wmissing-prototypes', + '-Wformat', # required by format-security '-Werror=format-security', '-Wstrict-prototypes'] add_project_arguments(cflags, language: 'c')