aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-14 16:01:47 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-14 16:01:47 +0000
commit92669840a43f438df7d8180cd73ce92a564b1988 (patch)
tree0cb76f4aa9cdbd3bb5a9ef772d4ddf28f7c7accd /ui/qt
parent9b69e1d8e2767c99d939adba1d08b378758eef42 (diff)
Fix compilation warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44489 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/capture_info_dialog.cpp4
-rw-r--r--ui/qt/color_dialog.cpp2
-rw-r--r--ui/qt/main.cpp33
-rw-r--r--ui/qt/main_welcome.cpp2
4 files changed, 26 insertions, 15 deletions
diff --git a/ui/qt/capture_info_dialog.cpp b/ui/qt/capture_info_dialog.cpp
index 5db26080f5..850284913d 100644
--- a/ui/qt/capture_info_dialog.cpp
+++ b/ui/qt/capture_info_dialog.cpp
@@ -38,6 +38,8 @@ void capture_info_ui_create(
capture_info *cinfo,
capture_options *capture_opts)
{
+ Q_UNUSED(cinfo);
+ Q_UNUSED(capture_opts);
g_log(NULL, G_LOG_LEVEL_DEBUG, "FIX: capture_info_ui_create");
}
@@ -47,6 +49,7 @@ capture_options *capture_opts)
void capture_info_ui_update(
capture_info *cinfo)
{
+ Q_UNUSED(cinfo);
g_log(NULL, G_LOG_LEVEL_DEBUG, "FIX: capture_info_ui_update");
}
@@ -54,6 +57,7 @@ capture_info *cinfo)
void capture_info_ui_destroy(
capture_info *cinfo)
{
+ Q_UNUSED(cinfo);
g_log(NULL, G_LOG_LEVEL_DEBUG, "FIX: capture_info_ui_destroy");
}
diff --git a/ui/qt/color_dialog.cpp b/ui/qt/color_dialog.cpp
index 4e592fc2cc..5d0664697c 100644
--- a/ui/qt/color_dialog.cpp
+++ b/ui/qt/color_dialog.cpp
@@ -40,6 +40,8 @@
void
color_filter_add_cb(color_filter_t *colorf, gpointer user_data)
{
+ Q_UNUSED(colorf);
+ Q_UNUSED(user_data);
g_log(NULL, G_LOG_LEVEL_DEBUG, "FIX: color_filter_add_cb");
// GtkWidget *color_filters = user_data;
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index b97686e659..a1b92b40b0 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -154,6 +154,11 @@ extern capture_options global_capture_opts;
// Copied from ui/gtk/gui_utils.c
void pipe_input_set_handler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb)
{
+ Q_UNUSED(source);
+ Q_UNUSED(user_data);
+ Q_UNUSED(child_process);
+ Q_UNUSED(input_cb);
+
// static pipe_input_t pipe_input;
// pipe_input.source = source;
@@ -619,12 +624,12 @@ int main(int argc, char *argv[])
MainWindow *w;
char *init_progfile_dir_error;
- char *s;
+// char *s;
int opt;
- gboolean arg_error = FALSE;
+// gboolean arg_error = FALSE;
- extern int info_update_freq; /* Found in about_dlg.c. */
- const gchar *filter;
+// extern int info_update_freq; /* Found in about_dlg.c. */
+// const gchar *filter;
#ifdef _WIN32
WSADATA wsaData;
@@ -635,8 +640,8 @@ int main(int argc, char *argv[])
char *gdp_path, *dp_path;
int err;
#ifdef HAVE_LIBPCAP
- gboolean start_capture = FALSE;
- gboolean list_link_layer_types = FALSE;
+// gboolean start_capture = FALSE;
+// gboolean list_link_layer_types = FALSE;
GList *if_list;
gchar *err_str;
#else
@@ -647,17 +652,17 @@ int main(int argc, char *argv[])
#endif
#endif
#endif
- gint pl_size = 280, tv_size = 95, bv_size = 75;
- gchar *rc_file, *cf_name = NULL, *rfilter = NULL, *jfilter = NULL;
- dfilter_t *rfcode = NULL;
- gboolean rfilter_parse_failed = FALSE;
+// gint pl_size = 280, tv_size = 95, bv_size = 75;
+// gchar *rc_file, *cf_name = NULL, *rfilter = NULL, *jfilter = NULL;
+// dfilter_t *rfcode = NULL;
+// gboolean rfilter_parse_failed = FALSE;
e_prefs *prefs_p;
- char badopt;
+// char badopt;
//GtkWidget *splash_win = NULL;
GLogLevelFlags log_flags;
- guint go_to_packet = 0;
- gboolean jump_backwards = FALSE;
- dfilter_t *jump_to_filter = NULL;
+// guint go_to_packet = 0;
+// gboolean jump_backwards = FALSE;
+// dfilter_t *jump_to_filter = NULL;
int optind_initial;
int status;
diff --git a/ui/qt/main_welcome.cpp b/ui/qt/main_welcome.cpp
index 88d4a46301..800aafc799 100644
--- a/ui/qt/main_welcome.cpp
+++ b/ui/qt/main_welcome.cpp
@@ -202,7 +202,7 @@ void MainWelcome::updateRecentFiles() {
rfRow++;
}
- while (m_recent_files.count() > prefs.gui_recent_files_count_max) {
+ while (m_recent_files.count() > (int) prefs.gui_recent_files_count_max) {
m_recent_files.takeItem(m_recent_files.count());
}
}