aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-01-08 14:17:02 +0000
committerDario Lombardo <lomato@gmail.com>2016-01-08 16:08:12 +0000
commit35a79ffebb1dfa89b92a84482cf7326fddbe6fba (patch)
tree7a42c4f69f8c7536362978562a2dc558d29f5c4f /epan/tap.c
parentaf6768d3ef6ae8d8f93f26d859df4cfb893454bf (diff)
Fix warning for epan/tap.c [-Wpedantic]
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 <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c3
1 files changed, 3 insertions, 0 deletions
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 <epan/packet_info.h>
#include <epan/dfilter/dfilter.h>
#include <epan/tap.h>
+#include <wsutil/ws_diag_control.h>
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.