Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Fix warning for epan/tap.c [-Wpedantic]
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Petri Dish Buildbot <[email protected]>
Reviewed-by: Dario Lombardo <[email protected]>
  • Loading branch information
randstr authored and crondaemon committed Jan 8, 2016
1 parent af6768d commit 35a79ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epan/tap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 35a79ff

Please sign in to comment.