[libvirt] wireshark compilation warning

Cole Robinson crobinso at redhat.com
Wed Jul 20 14:27:36 UTC 2016


I'm seeing this compilation warning on Fedora 24, with
wireshark-devel-2.1.0-3.fc24.x86_64 which has the header file fix that was
previously breaking compilation:

  CC       wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo
  CC       wireshark/src/wireshark_src_libvirt_la-plugin.lo
  CCLD     nss/libnss_libvirt.la
wireshark/src/packet-libvirt.c: In function 'proto_reg_handoff_libvirt':
wireshark/src/packet-libvirt.c:548:46: warning: passing argument 1 of
'create_dissector_handle' from incompatible pointer type
[-Wincompatible-pointer-types]
     libvirt_handle = create_dissector_handle(dissect_libvirt, proto_libvirt);
                                              ^~~~~~~~~~~~~~~
In file included from wireshark/src/packet-libvirt.c:28:0:
/usr/include/wireshark/epan/packet.h:525:68: note: expected 'dissector_t {aka
int (*)(struct tvbuff *, struct _packet_info *, struct _proto_node *, void
*)}' but argument is of type 'void (*)(tvbuff_t *, packet_info *, proto_tree
*) {aka void (*)(struct tvbuff *, struct _packet_info *, struct _proto_node *)}'
 WS_DLL_PUBLIC dissector_handle_t create_dissector_handle(dissector_t dissector,


I can't even find the definition of dissect_libvirt so I assume there's some
weird magic going on here...

Thanks,
Cole




More information about the libvir-list mailing list