summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 17:37:16 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 17:37:16 +0000
commit75e051cceb94aa5ccba321d325036841df8a0a3f (patch)
tree69551dae093c194a02d2e5a29e9fe9e6b16debef /chrome
parent0eb25f7fc32e838b5ea563014383a5348742e4b9 (diff)
downloadchromium_src-75e051cceb94aa5ccba321d325036841df8a0a3f.zip
chromium_src-75e051cceb94aa5ccba321d325036841df8a0a3f.tar.gz
chromium_src-75e051cceb94aa5ccba321d325036841df8a0a3f.tar.bz2
Fix gcc warnings when -Wall got re-enabled for Linux.
browser/gtk/bookmark_bar_gtk.cc: In static member function 'static gboolean BookmarkBarGtk::OnToolbarDragLeave(GtkToolbar*, GdkDragContext*, guint, BookmarkBarGtk*)': browser/gtk/bookmark_bar_gtk.cc:372: warning: control reaches end of non-void function /usr/local/google/chromium3/src/chrome/browser/gtk/tabs/tab_renderer_gtk.h: In constructor 'TabRendererGtk::TabRendererGtk()': /usr/local/google/chromium3/src/chrome/browser/gtk/tabs/tab_renderer_gtk.h:241: warning: 'TabRendererGtk::loading_animation_' will be initialized after /usr/local/google/chromium3/src/chrome/browser/gtk/tabs/tab_renderer_gtk.h:238: warning: 'TabRendererGtk::CloseButtonState TabRendererGtk::close_button_state_' browser/gtk/tabs/tab_renderer_gtk.cc:139: warning: when initialized here browser/gtk/tabs/tab_strip_gtk.cc: In member function 'GdkRegion* NewTabButton::MakeRegionForButton() const': browser/gtk/tabs/tab_strip_gtk.cc:152: warning: unused variable 'h' Review URL: http://codereview.chromium.org/67038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.cc8
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.h8
-rw-r--r--chrome/browser/gtk/tabs/tab_renderer_gtk.cc4
-rw-r--r--chrome/browser/gtk/tabs/tab_strip_gtk.cc5
4 files changed, 12 insertions, 13 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index 22cf7d42..59537cb 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/gtk/bookmark_bar_gtk.cc
@@ -359,10 +359,10 @@ gboolean BookmarkBarGtk::OnToolbarDragMotion(GtkToolbar* toolbar,
}
// static
-gboolean BookmarkBarGtk::OnToolbarDragLeave(GtkToolbar* toolbar,
- GdkDragContext* context,
- guint time,
- BookmarkBarGtk* bar) {
+void BookmarkBarGtk::OnToolbarDragLeave(GtkToolbar* toolbar,
+ GdkDragContext* context,
+ guint time,
+ BookmarkBarGtk* bar) {
if (bar->toolbar_drop_item_) {
g_object_unref(bar->toolbar_drop_item_);
bar->toolbar_drop_item_ = NULL;
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h
index 1c151f5..9b1a30f 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.h
+++ b/chrome/browser/gtk/bookmark_bar_gtk.h
@@ -139,10 +139,10 @@ class BookmarkBarGtk : public BookmarkModelObserver {
gint y,
guint time,
BookmarkBarGtk* bar);
- static gboolean OnToolbarDragLeave(GtkToolbar* toolbar,
- GdkDragContext* context,
- guint time,
- BookmarkBarGtk* bar);
+ static void OnToolbarDragLeave(GtkToolbar* toolbar,
+ GdkDragContext* context,
+ guint time,
+ BookmarkBarGtk* bar);
Profile* profile_;
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
index 4811f77..13aa8f8 100644
--- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
@@ -143,8 +143,8 @@ TabRendererGtk::TabRendererGtk()
fav_icon_hiding_offset_(0),
should_display_crashed_favicon_(false),
hovering_(false),
- loading_animation_(&loading_animation_data),
- close_button_state_(BS_NORMAL) {
+ close_button_state_(BS_NORMAL),
+ loading_animation_(&loading_animation_data) {
InitResources();
}
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
index f697099..45f1839 100644
--- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
@@ -148,9 +148,8 @@ class NewTabButton {
// Creates a clickable region of the button's visual representation. Used for
// hit-testing. Caller is responsible for destroying the region.
GdkRegion* MakeRegionForButton() const {
- int w = width();
- int h = height();
- static const int kNumRegionPoints = 8;
+ const int w = width();
+ const int kNumRegionPoints = 8;
// These values are defined by the shape of the new tab bitmap. Should that
// bitmap ever change, these values will need to be updated. They're so