aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2017-04-24 07:57:32 +0200
committerGuy Harris <guy@alum.mit.edu>2017-04-24 06:26:23 +0000
commit860abb09e7e6ec5aec6a438d5e1d7657cacc66cd (patch)
tree5aef60c4019a3a8ab201bf64e2f196bb1bb1bf41 /tfshark.c
parente52c95c6c8cdac34eccdba9b49d68a6982685f1a (diff)
TFSHARK: Fix clobbing warning for variable success
Without setting the success variable as volatile my build fails with warning "error: variable success might be clobbered by 'longjmp' or 'vfork'" Change-Id: Ic7d4a9b8be4bf9211127dcf5a6bb4bef8bbcd7a9 Reviewed-on: https://code.wireshark.org/review/21310 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tfshark.c b/tfshark.c
index 16b4b6ebe3..bad0ab3b46 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -336,7 +336,7 @@ main(int argc, char *argv[])
gboolean arg_error = FALSE;
int err;
- gboolean success;
+ volatile gboolean success;
volatile int exit_status = 0;
gboolean quiet = FALSE;
gchar *volatile cf_name = NULL;