~plymouth-dev/plymouth/trunk

Viewing all changes in revision 1854.

  • Committer: Ray Strode
  • Author(s): Hans de Goede
  • Date: 2018-07-10 19:47:14 UTC
  • Revision ID: git-v1:7fdfeecd32f1f8605060a98f266d3fcfc323cbf5
configure: Pass -Wno-cast-function-type if available

plymouth uses function type casts for callbacks in quite a few places, fixing
these needlessly complicates the code, so lets pass -Wno-cast-function-type.

This fixes 218 warnings like this one:

ply-command-parser.c: In function â€˜ply_command_parser_stop_parsing_arguments’:
ply-command-parser.c:680:48: warning: cast between incompatible function types from â€˜void (*)(ply_command_parser_t *)’ {aka â€˜void (*)(struct _ply_command_parser *)’} to â€˜void (*)(void *, int,  ply_event_loop_t *)’ {aka â€˜void (*)(void *, int,  struct _ply_event_loop *)’} [-Wcast-function-type]
                                                (ply_event_loop_exit_handler_t)

Signed-off-by: Hans de Goede <hdegoede@redhat.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: