s4:heimdal: Disable format truncation warnings
authorAndreas Schneider <asn@samba.org>
Tue, 26 Mar 2019 20:14:13 +0000 (21:14 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 25 Apr 2019 10:47:16 +0000 (10:47 +0000)
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>
source4/heimdal_build/wscript_build

index 45938b88315c02d98c8cb4a20a2ea4f1ff64e115..871db6b37fbd241586c83098e7c79f57e3188a3d 100644 (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'
         )