[geary/mjog/misc-fixes: 26/27] Fix some build warnings
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/misc-fixes: 26/27] Fix some build warnings
- Date: Sun, 2 Feb 2020 07:17:10 +0000 (UTC)
commit 9c0fecf552af863cf05e47c6f5824bba5f379d92
Author: Michael Gratton <mike vee net>
Date: Mon Jan 27 01:05:31 2020 +1100
Fix some build warnings
src/client/components/components-reflow-box.c | 7 ++++---
src/client/composer/composer-widget.vala | 1 -
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/client/components/components-reflow-box.c b/src/client/components/components-reflow-box.c
index f9d9fbe4..4e7acc87 100644
--- a/src/client/components/components-reflow-box.c
+++ b/src/client/components/components-reflow-box.c
@@ -36,7 +36,7 @@ struct _ComponentsReflowBox
guint row_spacing;
};
-G_DEFINE_TYPE (ComponentsReflowBox, components_reflow_box, GTK_TYPE_CONTAINER);
+G_DEFINE_TYPE (ComponentsReflowBox, components_reflow_box, GTK_TYPE_CONTAINER)
enum {
PROP_0,
@@ -318,6 +318,7 @@ components_reflow_box_size_allocate(GtkWidget *widget,
static GtkSizeRequestMode
components_reflow_box_get_request_mode(GtkWidget *widget)
{
+ COMPONENTS_REFLOW_BOX (widget);
return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
}
@@ -356,7 +357,7 @@ components_reflow_box_get_preferred_width(GtkWidget *widget,
static void
components_reflow_box_get_preferred_width_for_height (GtkWidget *widget,
- gint height,
+ G_GNUC_UNUSED gint height,
gint *minimum_width,
gint *natural_width)
{
@@ -406,7 +407,7 @@ components_reflow_box_remove (GtkContainer *container,
static void
components_reflow_box_forall (GtkContainer *container,
- gboolean include_internals,
+ G_GNUC_UNUSED gboolean include_internals,
GtkCallback callback,
gpointer callback_data)
{
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 95513538..69970b58 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -324,7 +324,6 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
private Gtk.ComboBoxText from_multiple;
private Gee.ArrayList<FromAddressMap> from_list = new Gee.ArrayList<FromAddressMap>();
- [GtkChild] Gtk.Box to_row;
[GtkChild]
private Gtk.Box to_box;
[GtkChild]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]