1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Caio Marcelo de Oliveira Filho 2018-02-19 01:37:19 -08:00 committed by Yu Watanabe
parent ba3182b91a
commit 9e70f2f818

View File

@ -353,7 +353,7 @@ foreach arg : ['unused-parameter',
endif
endforeach
if cc.compiles('
if cc.compiles('''
#include <time.h>
#include <inttypes.h>
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