[yelp/wip/kill-gnome-common: 4/13] Add default to switch statement



commit 12b632d3700e7a161d87449c6dded23441471290
Author: David King <amigadave amigadave com>
Date:   Thu Jan 29 13:46:34 2015 +0000

    Add default to switch statement
    
    Avoid a compiler warning.

 tests/test-uri.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-uri.c b/tests/test-uri.c
index 624b68b..0f50abf 100644
--- a/tests/test-uri.c
+++ b/tests/test-uri.c
@@ -76,6 +76,9 @@ print_uri (gchar *orig, YelpUri *uri, GOutputStream *stream)
     case YELP_URI_DOCUMENT_TYPE_UNRESOLVED:
         type = "UNRESOLVED";
         break;
+    default:
+        g_assert_not_reached ();
+        break;
     }
 
     out = g_strdup_printf ("DOCUMENT TYPE: %s\n", type);


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