cal: fix compilation error with GCC 8.0
commit0d06520bec7649a7ed0c3297e416b6c672657125
authorStefan Becker <chemobejk@gmail.com>
Sun, 11 Feb 2018 20:03:01 +0000 (11 22:03 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sun, 18 Feb 2018 15:57:54 +0000 (18 17:57 +0200)
treefb97f0591999929e2daf31aa5c66b7c5266e67f7
parent30baf22e4ba94035bdf5c8982e5903c65d23690c
cal: fix compilation error with GCC 8.0

Fedora Rawhide has already moved to GCC 8.0 which adds the warning
option -Wcast-function-type to -Wextra. Add this option to our list of
additional quality flags.

The code worked just by luck, because casting between sipe_public and
sipe_private is in practice just a no-op. Introduce a proper callback
function to remove the incorrect function cast.

(cherry picked from commit fb18c656a34b6967c76facc4f4df20341e2d17df)
configure.ac
src/core/sipe-cal.c