[glib] 'default: g_assert_not_reached();' to silence GCC
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] 'default: g_assert_not_reached();' to silence GCC
- Date: Tue, 9 Mar 2010 18:34:41 +0000 (UTC)
commit a85b9c4badf22777b1b099befcd9e033afa45dbf
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Mar 9 13:34:00 2010 -0500
'default: g_assert_not_reached();' to silence GCC
Closes bug #612327 reported by Claudio Saavedra.
glib/gvariant-serialiser.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/gvariant-serialiser.c b/glib/gvariant-serialiser.c
index a4c7fa6..1cf330c 100644
--- a/glib/gvariant-serialiser.c
+++ b/glib/gvariant-serialiser.c
@@ -1041,6 +1041,9 @@ gvs_tuple_is_normal (GVariantSerialised value)
end = gvs_read_unaligned_le (value.data + offset_ptr, offset_size);
break;
+
+ default:
+ g_assert_not_reached ();
}
if (end < offset || end > offset_ptr)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]