python: Create macro to hide ugly function signature cast
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 11:32:36 +0000 (12:32 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:16 +0000 (17:55 +0000)
commitd6b1c33dd6bc15307b0ba5089fc8d99834061004
tree73708b1bdb1eb37b72c9ed59dbdb204acb4d9256
parent82a40271719b5e3b12d13d50312dc793add647b1
python: Create macro to hide ugly function signature cast

-Wcast-function-type triggers various warnings related to bad api
decisions in python source. To avoid these warnings we hide them
by casting to void first. Macro here is to hide the uglyness and
provide an easy place to either/or
  + fix better in a single place in the future
  + identify the places involved should python api change in a way
    this can be handled better

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/modules.h