aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-20 09:55:35 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-20 16:56:11 +0000
commit7312019eac8d4c5546af1108f52155aa6efac0d4 (patch)
tree2b23fb8907706f0bb5faf8d4c75f56faa2b2650c /tshark.c
parent9b0b2c3d59a698ac80c2d9911575d96c7803a08d (diff)
Fix a compiler warning.
(Clang FTW! Is this not an issue on x86-64 macOS, so that it doesn't warn about it, or does it, unlike GCC, require a particular -W flag to warn about non-volatile variables being stomped by setjmp/longjmp?) Change-Id: I253c1ea324feac1372aa4077aaba03c787a47d9f Reviewed-on: https://code.wireshark.org/review/21248 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 7cfd911194..960ab68577 100644
--- a/tshark.c
+++ b/tshark.c
@@ -643,7 +643,6 @@ main(int argc, char *argv[])
{0, 0, 0, 0 }
};
gboolean arg_error = FALSE;
- const char *exp_pdu_filename = NULL;
#ifdef _WIN32
int result;
@@ -681,6 +680,7 @@ main(int argc, char *argv[])
int log_flags;
gchar *output_only = NULL;
gchar *volatile pdu_export_arg = NULL;
+ const char *volatile exp_pdu_filename = NULL;
exp_pdu_t exp_pdu_tap_data;
/*