waf: Allow building with MIT KRB5 >= 1.20
authorAndreas Schneider <asn@samba.org>
Mon, 4 Oct 2021 11:02:35 +0000 (13:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Oct 2021 12:02:33 +0000 (12:02 +0000)
gssrpc/xdr.h:105:1: error: function declaration isn’t a prototype
[-Werror=strict-prototypes]
  105 | typedef bool_t (*xdrproc_t)();
      | ^~~~~~~

This can't be fixed, as the protoype is variadic. It can take up to three
arguments.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14870

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/wscript_build

index c1f9a478582d2f369a45de59ac0943420f848efa..0edca94e75fdb16e21ad5057271ea659a45bbd9f 100644 (file)
@@ -29,6 +29,7 @@ if bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'):
 if bld.CONFIG_GET('SAMBA_USES_MITKDC'):
     bld.SAMBA_MODULE('service_kdc',
                      source='kdc-service-mit.c',
+                     cflags_end='-Wno-strict-prototypes',
                      subsystem='service',
                      init_function='server_service_mitkdc_init',
                      deps='''