diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2017-04-24 07:57:32 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-24 06:26:23 +0000 |
commit | 860abb09e7e6ec5aec6a438d5e1d7657cacc66cd (patch) | |
tree | 5aef60c4019a3a8ab201bf64e2f196bb1bb1bf41 /tfshark.c | |
parent | e52c95c6c8cdac34eccdba9b49d68a6982685f1a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |