forked from osmocom/wireshark
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:
parent
e52c95c6c8
commit
860abb09e7
|
@ -336,7 +336,7 @@ main(int argc, char *argv[])
|
||||||
gboolean arg_error = FALSE;
|
gboolean arg_error = FALSE;
|
||||||
|
|
||||||
int err;
|
int err;
|
||||||
gboolean success;
|
volatile gboolean success;
|
||||||
volatile int exit_status = 0;
|
volatile int exit_status = 0;
|
||||||
gboolean quiet = FALSE;
|
gboolean quiet = FALSE;
|
||||||
gchar *volatile cf_name = NULL;
|
gchar *volatile cf_name = NULL;
|
||||||
|
|
Loading…
Reference in New Issue