[yelp] Fix switch missing default case warnings
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Fix switch missing default case warnings
- Date: Mon, 9 Feb 2015 23:36:12 +0000 (UTC)
commit 6c970add6f88a684b39e6d76e7e080b07b977726
Author: David King <amigadave amigadave com>
Date: Mon Feb 9 16:01:52 2015 +0000
Fix switch missing default case warnings
libyelp/yelp-docbook-document.c | 3 +++
libyelp/yelp-document.c | 2 ++
libyelp/yelp-info-document.c | 3 +++
libyelp/yelp-mallard-document.c | 5 ++++-
libyelp/yelp-man-document.c | 3 +++
libyelp/yelp-settings.c | 2 ++
libyelp/yelp-uri.c | 3 +++
7 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c
index 83eebc8..ffa3dae 100644
--- a/libyelp/yelp-docbook-document.c
+++ b/libyelp/yelp-docbook-document.c
@@ -300,6 +300,9 @@ docbook_request_page (YelpDocument *document,
error);
g_error_free (error);
break;
+ default:
+ g_assert_not_reached ();
+ break;
}
g_mutex_unlock (&priv->mutex);
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index 6ff004a..6839d32 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -229,6 +229,8 @@ yelp_document_get_for_uri (YelpUri *uri)
case YELP_URI_DOCUMENT_TYPE_EXTERNAL:
case YELP_URI_DOCUMENT_TYPE_ERROR:
break;
+ default:
+ g_assert_not_reached ();
}
if (document != NULL) {
diff --git a/libyelp/yelp-info-document.c b/libyelp/yelp-info-document.c
index bfb6a78..9b54631 100644
--- a/libyelp/yelp-info-document.c
+++ b/libyelp/yelp-info-document.c
@@ -240,6 +240,9 @@ info_request_page (YelpDocument *document,
error);
g_error_free (error);
break;
+ default:
+ g_assert_not_reached ();
+ break;
}
g_mutex_unlock (&priv->mutex);
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index 4987106..710fbc6 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -308,7 +308,10 @@ mallard_request_page (YelpDocument *document,
YELP_DOCUMENT_SIGNAL_ERROR,
error);
g_error_free (error);
- break;
+ break;
+ default:
+ g_assert_not_reached ();
+ break;
}
g_mutex_unlock (&priv->mutex);
diff --git a/libyelp/yelp-man-document.c b/libyelp/yelp-man-document.c
index cfb8d3c..111941b 100644
--- a/libyelp/yelp-man-document.c
+++ b/libyelp/yelp-man-document.c
@@ -284,6 +284,9 @@ man_request_page (YelpDocument *document,
error);
g_error_free (error);
break;
+ default:
+ g_assert_not_reached ();
+ break;
}
g_mutex_unlock (&priv->mutex);
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 5c84e56..596006e 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -1124,6 +1124,8 @@ hsv_to_hex (gdouble h, gdouble s, gdouble v, gchar *str)
g = m1; r = m3; break;
case 5:
g = m1; b = m2; break;
+ default:
+ g_assert_not_reached (); break;
}
red = r * 255;
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 4b4082c..e139c1a 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -362,6 +362,9 @@ resolve_sync (YelpUri *uri)
case YELP_URI_DOCUMENT_TYPE_EXTERNAL:
case YELP_URI_DOCUMENT_TYPE_ERROR:
break;
+ default:
+ g_assert_not_reached ();
+ break;
}
}
else if (strchr (priv->res_arg, ':')) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]