diff options
author | Björn Jacke <bj@sernet.de> | 2019-02-09 01:30:50 +0100 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-02-17 13:33:14 +0100 |
commit | 6e72fe8450d86fd6649dad7fbbc12655c36b0738 (patch) | |
tree | 9c1897b5cce18d22b53a5eda7b7d1da04eb63d59 /buildtools | |
parent | e8d1e04bb64ea5e6cc17bf4a996fdee770a81967 (diff) | |
download | samba-6e72fe8450d86fd6649dad7fbbc12655c36b0738.tar.gz |
waf: fix some missing newline compiler warnings
without a trailing newline the studio compiler issues:
warning: newline not last character in file
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 2 | ||||
-rw-r--r-- | buildtools/wafsamba/samba_conftests.py | 5 | ||||
-rw-r--r-- | buildtools/wafsamba/wscript | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 6208e3b0439..9d45ada1312 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -97,7 +97,7 @@ def CHECK_HEADER(conf, h, add_headers=False, lib=None): hdrs = hlist_to_string(conf, headers=h) if lib is None: lib = "" - ret = conf.check(fragment='%s\nint main(void) { return 0; }' % hdrs, + ret = conf.check(fragment='%s\nint main(void) { return 0; }\n' % hdrs, type='nolink', execute=0, cflags=ccflags, diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index 7d9b5316902..96345ca00c6 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -258,7 +258,8 @@ int foo(int v) { environ[0] = 1; ldb_module = PyImport_ImportModule("ldb"); return v * 2; -}''' +} +''' return conf.check(features='c cshlib',uselib='PYEMBED',fragment=snip,msg=msg, mandatory=False) # this one is quite complex, and should probably be broken up @@ -463,7 +464,7 @@ def CHECK_INLINE(conf): ret = conf.CHECK_CODE(''' typedef int foo_t; static %s foo_t static_foo () {return 0; } - %s foo_t foo () {return 0; }''' % (i, i), + %s foo_t foo () {return 0; }\n''' % (i, i), define='INLINE_MACRO', addmain=False, link=False) diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 57d8a1504e1..86293d347a1 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -351,7 +351,7 @@ def configure(conf): if conf.CHECK_CFLAGS(['-fvisibility=hidden'] + conf.env.WERROR_CFLAGS): conf.env.VISIBILITY_CFLAGS = '-fvisibility=hidden' conf.CHECK_CODE('''int main(void) { return 0; } - __attribute__((visibility("default"))) void vis_foo2(void) {}''', + __attribute__((visibility("default"))) void vis_foo2(void) {}\n''', cflags=conf.env.VISIBILITY_CFLAGS, strict=True, define='HAVE_VISIBILITY_ATTR', addmain=False) @@ -521,7 +521,7 @@ struct foo bar = { .y = 'X', .x = 1 }; #if !defined(LITTLE) || !defined(B) || LITTLE != B #error Not little endian. #endif - int main(void) { return 0; }""", + int main(void) { return 0; }\n""", addmain=False, headers="endian.h sys/endian.h", define="HAVE_LITTLE_ENDIAN") @@ -540,7 +540,7 @@ struct foo bar = { .y = 'X', .x = 1 }; #if !defined(BIG) || !defined(B) || BIG != B #error Not big endian. #endif - int main(void) { return 0; }""", + int main(void) { return 0; }\n""", addmain=False, headers="endian.h sys/endian.h", define="HAVE_BIG_ENDIAN") |