From 237081e5735b463b7528f4f3f52978eaf1bfeeca Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 12 Oct 2021 16:27:56 +0200 Subject: Fix compiler warnings ('Switch does not handle .. of enum ..') --- main/src/ui/conversation_content_view/file_widget.vala | 3 +++ main/src/ui/notifier_freedesktop.vala | 2 ++ 2 files changed, 5 insertions(+) (limited to 'main') diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala index 7d77ba11..5766ec25 100644 --- a/main/src/ui/conversation_content_view/file_widget.vala +++ b/main/src/ui/conversation_content_view/file_widget.vala @@ -175,6 +175,9 @@ public class FileDefaultWidgetController : Object { assert(stream_interactor != null && file_transfer != null); stream_interactor.get_module(FileManager.IDENTITY).download_file.begin(file_transfer); break; + default: + // Clicking doesn't do anything in FAILED and IN_PROGRESS states + break; } return false; } diff --git a/main/src/ui/notifier_freedesktop.vala b/main/src/ui/notifier_freedesktop.vala index 634f331b..48313be3 100644 --- a/main/src/ui/notifier_freedesktop.vala +++ b/main/src/ui/notifier_freedesktop.vala @@ -200,6 +200,8 @@ public class Dino.Ui.FreeDesktopNotifier : NotificationProvider, Object { case ConnectionManager.ConnectionError.Source.TLS: body = _("Invalid TLS certificate"); break; + default: + break; } HashTable hash_table = new HashTable(null, null); -- cgit v1.2.3-54-g00ecf