From 645f8e10ea44cb9668a7740b4838eb3378d0e8d7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 20 Nov 2019 16:09:48 +0100 Subject: [PATCH] core,plugin-manager: fix warnings with -Wswitch-default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mm-plugin-manager.c: In function ‘plugin_supports_port_ready’: mm-plugin-manager.c:480:5: warning: switch missing default case [-Wswitch-default] 480 | switch (support_result) { | ^~~~~~ --- src/mm-plugin-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mm-plugin-manager.c b/src/mm-plugin-manager.c index 5a241793..950af441 100644 --- a/src/mm-plugin-manager.c +++ b/src/mm-plugin-manager.c @@ -495,6 +495,8 @@ plugin_supports_port_ready (MMPlugin *plugin, case MM_PLUGIN_SUPPORTS_PORT_DEFER_UNTIL_SUGGESTED: port_context_defer_until_suggested (port_context, plugin); break; + default: + g_assert_not_reached (); } /* We received a full reference, to make sure the context was always