1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Andreas Schneider 2019-03-26 21:14:13 +01:00 committed by Andreas Schneider
parent bd5b4a16c7
commit fefb84b5b1

View File

@ -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'
)