From: Caio Marcelo de Oliveira Filho Date: Mon, 19 Feb 2018 09:37:19 +0000 (-0800) Subject: meson: use multiline string syntax (#8214) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6074e92552ced541803bbed62c877e795ddddc17;p=elogind.git 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. --- diff --git a/meson.build b/meson.build index 6d16024c3..b4bb15932 100644 --- a/meson.build +++ b/meson.build @@ -417,7 +417,7 @@ foreach arg : ['unused-parameter', endif endforeach -if cc.compiles(' +if cc.compiles(''' #include #include typedef uint64_t usec_t; @@ -426,7 +426,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