diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2017-01-24 18:13:56 +0100 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2017-03-20 16:40:14 +0100 |
commit | f939a71167bd94c9e7777312af444183f7b20441 (patch) | |
tree | 907edf22dc276ebcfc71ca755d563c1105d4e9f2 /gi/pygi-info.c | |
parent | b3fb2ecbb98bd6e40fe49a5b16e5174645886710 (diff) | |
download | pygobject-f939a71167bd94c9e7777312af444183f7b20441.tar.gz |
Fix various potential compiler warnings
This is useful for a the next commit which switches away from
gnome-common and uses AX_COMPILER_FLAGS adding some new compiler
warning flags.
https://bugzilla.gnome.org/show_bug.cgi?id=777713
Diffstat (limited to 'gi/pygi-info.c')
-rw-r--r-- | gi/pygi-info.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c index 09c513b3..f2f7dce7 100644 --- a/gi/pygi-info.c +++ b/gi/pygi-info.c @@ -1108,6 +1108,8 @@ _pygi_g_type_tag_size (GITypeTag type_tag) "Unable to know the size (assuming %s is not a pointer)", g_type_tag_to_string (type_tag)); break; + default: + break; } return size; @@ -1166,10 +1168,10 @@ _pygi_g_type_info_size (GITypeInfo *type_info) if (g_type_info_is_pointer (type_info)) { size = sizeof (gpointer); } else { - GITypeTag type_tag; + GITypeTag enum_type_tag; - type_tag = g_enum_info_get_storage_type ( (GIEnumInfo *) info); - size = _pygi_g_type_tag_size (type_tag); + enum_type_tag = g_enum_info_get_storage_type ( (GIEnumInfo *) info); + size = _pygi_g_type_tag_size (enum_type_tag); } break; case GI_INFO_TYPE_BOXED: @@ -1207,6 +1209,8 @@ _pygi_g_type_info_size (GITypeInfo *type_info) case GI_TYPE_TAG_ERROR: size = sizeof (gpointer); break; + default: + break; } return size; @@ -1429,6 +1433,9 @@ pygi_g_struct_info_is_simple (GIStructInfo *struct_info) g_base_info_unref (info); break; } + default: + g_assert_not_reached(); + break; } g_base_info_unref ( (GIBaseInfo *) field_type_info); |