diff --git a/epan/tap.c b/epan/tap.c index d1e68fd73e5..81afb66f150 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -36,6 +36,7 @@ #include #include #include +#include static gboolean tapping_is_active=FALSE; @@ -138,7 +139,9 @@ check_for_tap_plugin(GModule *handle) /* * Yes - this plugin includes one or more taps. */ +DIAG_OFF(pedantic) register_tap_listener_fn = (void (*)(void))gp; +DIAG_ON(pedantic) /* * Add this one to the list of tap plugins.