summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-19 15:48:34 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-04-02 09:03:45 +0200
commit8a1f67b53b11a11bb472c1d0b0010cd24b3106df (patch)
treedc5328f904163b74475decf4828893d970beab8b /buildtools
parent404f025284f594197562f4a2003fb18898faa885 (diff)
downloadsamba-8a1f67b53b11a11bb472c1d0b0010cd24b3106df.tar.gz
samba-8a1f67b53b11a11bb472c1d0b0010cd24b3106df.tar.xz
samba-8a1f67b53b11a11bb472c1d0b0010cd24b3106df.zip
wafsamba: add optional allow_warnings(default=True) to SAMBA_{SUBSYSTEM,LIBRARY,MODULE}()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index aeb941820a5..8ec4cb80863 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -130,6 +130,7 @@ def SAMBA_LIBRARY(bld, libname, source,
private_library=False,
grouping_library=False,
allow_undefined_symbols=False,
+ allow_warnings=True,
enabled=True):
'''define a Samba library'''
@@ -176,6 +177,7 @@ def SAMBA_LIBRARY(bld, libname, source,
autoproto_extra_source=autoproto_extra_source,
depends_on = depends_on,
hide_symbols = hide_symbols,
+ allow_warnings = allow_warnings,
pyembed = pyembed,
pyext = pyext,
local_include = local_include,
@@ -415,7 +417,8 @@ def SAMBA_MODULE(bld, modname, source,
enabled=True,
pyembed=False,
manpages=None,
- allow_undefined_symbols=False
+ allow_undefined_symbols=False,
+ allow_warnings=True
):
'''define a Samba module.'''
@@ -435,6 +438,7 @@ def SAMBA_MODULE(bld, modname, source,
cflags=cflags,
local_include=local_include,
global_include=global_include,
+ allow_warnings=allow_warnings,
enabled=enabled)
bld.ADD_INIT_FUNCTION(subsystem, modname, init_function)
@@ -481,7 +485,8 @@ def SAMBA_MODULE(bld, modname, source,
install_path="${MODULESDIR}/%s" % subsystem,
pyembed=pyembed,
manpages=manpages,
- allow_undefined_symbols=allow_undefined_symbols
+ allow_undefined_symbols=allow_undefined_symbols,
+ allow_warnings=allow_warnings
)
@@ -513,6 +518,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
vars=None,
subdir=None,
hide_symbols=False,
+ allow_warnings=True,
pyext=False,
pyembed=False):
'''define a Samba subsystem'''
@@ -548,7 +554,9 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
features = features,
source = source,
target = modname,
- samba_cflags = CURRENT_CFLAGS(bld, modname, cflags, hide_symbols=hide_symbols),
+ samba_cflags = CURRENT_CFLAGS(bld, modname, cflags,
+ allow_warnings=allow_warnings,
+ hide_symbols=hide_symbols),
depends_on = depends_on,
samba_deps = TO_LIST(deps),
samba_includes = includes,