squash 'cast between incompatible function types' warning
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 18:47:29 +0000 (19:47 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
commitcbdd3d0c26c9cefd968a2adaf9892c5c858bf597
treece2f3c7d6a024b80f2c5981707371123c6d12c81
parenta7d75a1c57befee4a178b7061ea218e353a72195
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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/credentials/pycredentials.c
libcli/nbt/pynbt.c
libcli/security/pysecurity.c
libgpo/pygpo.c
python/pyglue.c