diff options
author | Andreas Schneider <asn@samba.org> | 2019-03-26 21:14:13 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-04-25 10:47:16 +0000 |
commit | fefb84b5b137e20d1cfb5436702ef6a8aa8ac79b (patch) | |
tree | 20faf1a23f611f11ea4cc7c56e35542639904686 | |
parent | bd5b4a16c7e45b4deafb9071d915b90740d45543 (diff) | |
download | samba-fefb84b5b137e20d1cfb5436702ef6a8aa8ac79b.tar.gz |
s4:heimdal: Disable format truncation warnings
We build that code and do not treat warnings as errors anyway,
so just disable format truncation.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | source4/heimdal_build/wscript_build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/heimdal_build/wscript_build b/source4/heimdal_build/wscript_build index 45938b88315..871db6b37fb 100644 --- a/source4/heimdal_build/wscript_build +++ b/source4/heimdal_build/wscript_build @@ -699,9 +699,14 @@ if not bld.CONFIG_SET("USING_SYSTEM_ASN1"): HEIMDAL_ERRTABLE('HEIMDAL_ASN1_ERR_ET', 'lib/asn1/asn1_err.et') + heimdal_heim_asn1_cflags = '' + if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'): + heimdal_heim_asn1_cflags = '-Wno-format-truncation' + HEIMDAL_SUBSYSTEM('HEIMDAL_HEIM_ASN1', HEIMDAL_HEIM_ASN1_DER_SOURCE + 'lib/asn1/extra.c lib/asn1/timegm.c lib/asn1/asn1_err.c', includes='../heimdal/lib/asn1', + cflags=heimdal_heim_asn1_cflags, deps='roken com_err' ) |