[gnome-photos] header-bar, print-operation: Silence -Wswitch-enum



commit 6e6b244fcbd3e855fecf3344b4c570d31f60d788
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 6 19:00:00 2015 +0100

    header-bar, print-operation: Silence -Wswitch-enum

 src/photos-header-bar.c      |    3 ++-
 src/photos-print-operation.c |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-header-bar.c b/src/photos-header-bar.c
index e32dfb3..d2b7ad6 100644
--- a/src/photos-header-bar.c
+++ b/src/photos-header-bar.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2013, 2014 Red Hat, Inc.
+ * Copyright © 2013, 2014, 2015 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -145,6 +145,7 @@ photos_header_bar_set_mode (PhotosHeaderBar *self, PhotosHeaderBarMode mode)
       gtk_style_context_remove_class (context, "selection-mode");
       break;
 
+    case PHOTOS_HEADER_BAR_MODE_NONE:
     default:
       g_assert_not_reached ();
     }
diff --git a/src/photos-print-operation.c b/src/photos-print-operation.c
index e176e14..4a42166 100644
--- a/src/photos-print-operation.c
+++ b/src/photos-print-operation.c
@@ -117,6 +117,8 @@ photos_print_operation_draw_page (GtkPrintOperation *operation, GtkPrintContext
       x0 = priv->left_margin * dpi_x / 25.4;
       y0 = priv->top_margin  * dpi_y / 25.4;
       break;
+    case GTK_UNIT_NONE:
+    case GTK_UNIT_POINTS:
     default:
       g_assert_not_reached ();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]