From: Victor Julien Date: Wed, 7 Nov 2012 09:34:20 +0000 (+0100) Subject: Silence compiler warning if napatech3 support is disabled X-Git-Tag: suricata-1.4beta3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b645425331bf1d0aebd31ed8f3247eec31431da2;p=thirdparty%2Fsuricata.git Silence compiler warning if napatech3 support is disabled --- diff --git a/src/runmode-napatech-3gd.c b/src/runmode-napatech-3gd.c index c3ea162692..b8870f58eb 100644 --- a/src/runmode-napatech-3gd.c +++ b/src/runmode-napatech-3gd.c @@ -52,7 +52,9 @@ #define NT3GD_RUNMODE_WORKERS 4 static const char *default_mode = NULL; +#ifdef HAVE_NAPATECH_3GD static int num_configured_streams = 0; +#endif const char *RunModeNapatech3GDGetDefaultMode(void) {