]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use multiline string syntax (#8214)
authorCaio Marcelo de Oliveira Filho <cmarcelo@gmail.com>
Mon, 19 Feb 2018 09:37:19 +0000 (01:37 -0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Feb 2018 09:37:19 +0000 (18:37 +0900)
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

index b4d5964bf127889678e93a8c7973cdf909c96eee..3f742b5b4939118032563f862c97a47c0615df67 100644 (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