From c2619694fd2f94ad7da2d6e936494f4c16601212 Mon Sep 17 00:00:00 2001 From: Adam Moss <moss@lindenlab.com> Date: Mon, 24 Aug 2009 15:37:31 +0000 Subject: [PATCH] Some linux updater warning fixes for fussy futuristic gcc versions! --- indra/linux_updater/linux_updater.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/indra/linux_updater/linux_updater.cpp b/indra/linux_updater/linux_updater.cpp index acc60d42bf5..b93890ab325 100644 --- a/indra/linux_updater/linux_updater.cpp +++ b/indra/linux_updater/linux_updater.cpp @@ -258,7 +258,7 @@ void display_error(GtkWidget *parent, std::string title, std::string message) GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - message.c_str()); + "%s", message.c_str()); gtk_window_set_title(GTK_WINDOW(dialog), title.c_str()); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); @@ -538,12 +538,12 @@ gboolean install_package(std::string package_file, std::string destination) char *package_file_string_copy = g_strdup(package_file.c_str()); char *tmp_dest_dir_string_copy = g_strdup(tmp_dest_dir.c_str()); - char *argv[8] = { + gchar *argv[8] = { tar_cmd, - "--strip", "1", - "-xjf", + const_cast<gchar*>("--strip"), const_cast<gchar*>("1"), + const_cast<gchar*>("-xjf"), package_file_string_copy, - "-C", tmp_dest_dir_string_copy, + const_cast<gchar*>("-C"), tmp_dest_dir_string_copy, NULL, }; -- GitLab