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>
This commit is contained in:
Uli Heilmeier 2017-04-24 07:57:32 +02:00 committed by Guy Harris
parent e52c95c6c8
commit 860abb09e7
1 changed files with 1 additions and 1 deletions

View File

@ -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;