[calls/wip/compiler-warnings: 9/12] call-display: Add default case to switch statement




commit 52c62b015670236f54c5acefdc0d4a514ec4d619
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Wed Jun 2 19:59:10 2021 +0200

    call-display: Add default case to switch statement
    
    As caught by compiling with `-Wswitch-default`

 src/calls-call-display.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/calls-call-display.c b/src/calls-call-display.c
index d50c8e5a..bf989582 100644
--- a/src/calls-call-display.c
+++ b/src/calls-call-display.c
@@ -263,6 +263,9 @@ call_state_changed_cb (CallsCallDisplay *self,
                                     select_mode_complete,
                                     NULL);
     break;
+
+  default:
+    g_assert_not_reached ();
   }
 
   /* Status text */
@@ -288,6 +291,9 @@ call_state_changed_cb (CallsCallDisplay *self,
   case CALLS_CALL_STATE_DISCONNECTED:
     stop_timeout (self);
     break;
+
+  default:
+    g_assert_not_reached ();
   }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]