s4: squash 'cast between incompatible function types' warning
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 18:45:14 +0000 (19:45 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
commita7d75a1c57befee4a178b7061ea218e353a72195
tree45d349384f33d4ec8c624fd3d40daf4535d4a03f
parentcea41645fb463b026bb7161b524ba732ba0d14e3
s4: squash 'cast between incompatible function types' warning

To avoid warning above produced by using
 -Wcast-function-type we;

  + ensure PyCFunctions of type METH_NOARGS defined dummy arg
  + ensure PyCFunctions of type METH_KEYWORDS use PY_DISCARD_FUNC_SIG
    macro
  + ensure PyCFunctions of type METH_KEYWORDS really actually use the
    problematic kargs param, if not remove it

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/auth/gensec/pygensec.c
source4/auth/pyauth.c
source4/dns_server/pydns.c
source4/lib/messaging/pymessaging.c
source4/lib/registry/pyregistry.c
source4/libnet/py_net.c
source4/libnet/py_net_dckeytab.c
source4/param/pyparam.c