Make a few variables volatile to fix longjmp warnings.
authoreapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 20 Oct 2012 13:16:10 +0000 (13:16 +0000)
committereapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 20 Oct 2012 13:16:10 +0000 (13:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@45667 f5534014-38df-0310-8fa8-9805f1628bb7

file.c

diff --git a/file.c b/file.c
index 0d18bf2ceff1520f370c8b5376c292019ee49274..1869f6a44420515a531609a509d78a9f10e5cca2 100644 (file)
--- a/file.c
+++ b/file.c
@@ -513,7 +513,7 @@ cf_read(capture_file *cf, gboolean reloading)
   volatile gint64      progbar_quantum;
   dfilter_t           *dfcode;
   column_info         *cinfo;
-  gboolean             create_proto_tree;
+  volatile gboolean    create_proto_tree;
   guint                tap_flags;
   volatile int         count          = 0;
 #ifdef HAVE_LIBPCAP
@@ -764,14 +764,14 @@ cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *er
 cf_read_status_t
 cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
 {
-  gint64        data_offset             = 0;
-  gchar        *err_info;
-  volatile int  newly_displayed_packets = 0;
-  dfilter_t    *dfcode;
-  column_info  *cinfo;
-  gboolean      create_proto_tree;
-  guint         tap_flags;
-  gboolean      compiled;
+  gint64            data_offset             = 0;
+  gchar            *err_info;
+  volatile int      newly_displayed_packets = 0;
+  dfilter_t        *dfcode;
+  column_info      *cinfo;
+  volatile gboolean create_proto_tree;
+  guint             tap_flags;
+  gboolean          compiled;
 
   /* Compile the current display filter.
    * We assume this will not fail since cf->dfilter is only set in