summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorjoel@chromium.org <joel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 07:02:54 +0000
committerjoel@chromium.org <joel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 07:02:54 +0000
commit53a5453c5ade1cadf95989a2102cf56873888e78 (patch)
treec520a9a1893de01b36023d4800eaf8a21514d06d /chrome/browser/gtk
parent32caba271be320eaba3ef4cee0a5806de0b2cbca (diff)
downloadchromium_src-53a5453c5ade1cadf95989a2102cf56873888e78.zip
chromium_src-53a5453c5ade1cadf95989a2102cf56873888e78.tar.gz
chromium_src-53a5453c5ade1cadf95989a2102cf56873888e78.tar.bz2
linux: build fix for gcc-4.4
This fixes the following errors seen with gcc-4.4 on Ubuntu Karmic: CXX(target) out/Release/obj.target/browser/chrome/browser/gtk/download_in_progress_dialog_gtk.o cc1plus: warnings being treated as errors chrome/browser/gtk/download_in_progress_dialog_gtk.cc: In constructor ‘DownloadInProgressDialogGtk::DownloadInProgressDialogGtk(Browser*)’: chrome/browser/gtk/download_in_progress_dialog_gtk.cc:59: error: format not a string literal and no format arguments chrome/browser/gtk/download_in_progress_dialog_gtk.cc:68: error: format not a string literal and no format arguments Review URL: http://codereview.chromium.org/466017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/download_in_progress_dialog_gtk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_in_progress_dialog_gtk.cc b/chrome/browser/gtk/download_in_progress_dialog_gtk.cc
index 4e649be..41c6413 100644
--- a/chrome/browser/gtk/download_in_progress_dialog_gtk.cc
+++ b/chrome/browser/gtk/download_in_progress_dialog_gtk.cc
@@ -56,6 +56,7 @@ DownloadInProgressDialogGtk::DownloadInProgressDialogGtk(Browser* browser)
static_cast<GtkDialogFlags>(GTK_DIALOG_MODAL),
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE,
+ "%s",
warning_text.c_str());
gtk_util::AddButtonToDialog(dialog,
cancel_button_text.c_str(),
@@ -65,6 +66,7 @@ DownloadInProgressDialogGtk::DownloadInProgressDialogGtk(Browser* browser)
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
+ "%s",
explanation_text.c_str());
g_signal_connect(dialog, "response", G_CALLBACK(OnResponse), this);