aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-10-12 16:27:56 +0200
committerfiaxh <git@lightrise.org>2021-10-12 19:43:57 +0200
commit237081e5735b463b7528f4f3f52978eaf1bfeeca (patch)
tree49d9eaa3156153806fa88c0b7679fd2080d9bd2c /libdino
parente8c162eae3827a4f2abdf97b1e42f7398744c10e (diff)
downloaddino-237081e5735b463b7528f4f3f52978eaf1bfeeca.tar.gz
dino-237081e5735b463b7528f4f3f52978eaf1bfeeca.zip
Fix compiler warnings ('Switch does not handle .. of enum ..')
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/util.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdino/src/service/util.vala b/libdino/src/service/util.vala
index 4f9b94ce..3cbb48d9 100644
--- a/libdino/src/service/util.vala
+++ b/libdino/src/service/util.vala
@@ -11,8 +11,9 @@ public class Util {
return Entities.Message.Type.GROUPCHAT;
case Conversation.Type.GROUPCHAT_PM:
return Entities.Message.Type.GROUPCHAT_PM;
+ default:
+ assert_not_reached();
}
- assert_not_reached();
}
public static Conversation.Type get_conversation_type_for_message(Message message) {
@@ -23,8 +24,9 @@ public class Util {
return Conversation.Type.GROUPCHAT;
case Entities.Message.Type.GROUPCHAT_PM:
return Conversation.Type.GROUPCHAT_PM;
+ default:
+ assert_not_reached();
}
- assert_not_reached();
}
}