From 9e70f2f81821efa4797d89c06d1f04c11e86015e Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 19 Feb 2018 01:37:19 -0800 Subject: [PATCH] meson: use multiline string syntax (#8214) The single quote working with multiple lines is likely to be unintended. With current versions of meson, it also causes error messages after it to report the wrong line number. Use the documented syntax instead. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index b4d5964bf1..3f742b5b49 100644 --- a/meson.build +++ b/meson.build @@ -353,7 +353,7 @@ foreach arg : ['unused-parameter', endif endforeach -if cc.compiles(' +if cc.compiles(''' #include #include typedef uint64_t usec_t; @@ -362,7 +362,7 @@ if cc.compiles(' struct timespec now; return 0; } -', name : '-Werror=shadow with local shadowing') +''', name : '-Werror=shadow with local shadowing') add_project_arguments('-Werror=shadow', language : 'c') endif