From 35a79ffebb1dfa89b92a84482cf7326fddbe6fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 8 Jan 2016 14:17:02 +0000 Subject: Fix warning for epan/tap.c [-Wpedantic] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable ISO C compatibility warning when loading an external symbol. Change-Id: I85e0be1664a4f77983636a4bab559af2f79321aa Reviewed-on: https://code.wireshark.org/review/13132 Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo --- epan/tap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'epan/tap.c') diff --git a/epan/tap.c b/epan/tap.c index d1e68fd73e..81afb66f15 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. -- cgit v1.2.3