From: Andreas Schneider Date: Tue, 26 Mar 2019 20:14:13 +0000 (+0100) Subject: s4:heimdal: Disable format truncation warnings X-Git-Tag: tdb-1.4.1~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fefb84b5b137e20d1cfb5436702ef6a8aa8ac79b;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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' )