diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-15 13:52:18 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-15 13:52:18 -0700 |
commit | 16d733efa411e4d1b60fd9985ecc2e0f5b26fa24 (patch) | |
tree | 58f339204ddf9738285dbfec2311db5a3880217e /testprogs/filtertest.c | |
parent | f55d4f9a316c5383c005d2b35c7ebb9023d442d3 (diff) |
Squelch a warning.
We only support the -g flag if libpap is built with support for
debugging, so don't define the variable for the flag unless that support
is present.
Diffstat (limited to 'testprogs/filtertest.c')
-rw-r--r-- | testprogs/filtertest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testprogs/filtertest.c b/testprogs/filtertest.c index 477c9b93..440b550d 100644 --- a/testprogs/filtertest.c +++ b/testprogs/filtertest.c @@ -209,7 +209,9 @@ main(int argc, char **argv) char *cp; int op; int dflag; +#ifdef BDEBUG int gflag; +#endif char *infile; int Oflag; int snaplen; @@ -227,7 +229,9 @@ main(int argc, char **argv) #endif /* _WIN32 */ dflag = 1; +#ifdef BDEBUG gflag = 0; +#endif infile = NULL; Oflag = 1; |