[yelp/wip/kill-gnome-common: 9/16] Add default to switch statement
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/kill-gnome-common: 9/16] Add default to switch statement
- Date: Thu, 29 Jan 2015 14:24:05 +0000 (UTC)
commit ec2657016ea13f623f88ab62e6b5883a9a383843
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]