[calls/wip/compiler-warnings: 10/12] record-store: Add default case to switch statements




commit 910f9122f731cbb945df5e6e2efcb33c774c0d0b
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Wed Jun 2 20:42:07 2021 +0200

    record-store: Add default case to switch statements
    
    As caught by compiling with `-Wswitch-default`

 src/calls-record-store.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/calls-record-store.c b/src/calls-record-store.c
index 2f6f2da9..356171eb 100644
--- a/src/calls-record-store.c
+++ b/src/calls-record-store.c
@@ -63,9 +63,10 @@ state_to_record_state (CallsCallState call_state)
 
   case CALLS_CALL_STATE_DISCONNECTED:
     return ENDED;
-  }
 
-  g_assert_not_reached ();
+  default:
+    g_assert_not_reached ();
+  }
 }
 
 
@@ -561,6 +562,7 @@ state_changed_cb (CallsRecordStore *self,
       stamp_call (record, "end");
       break;
 
+    case STARTED:
     default:
       g_assert_not_reached ();
       break;
@@ -573,12 +575,15 @@ state_changed_cb (CallsRecordStore *self,
       stamp_call (record, "end");
       break;
 
+    case STARTED:
+    case ANSWERED:
     default:
       g_assert_not_reached ();
       break;
     }
     break;
 
+  case ENDED:
   default:
     g_assert_not_reached ();
     break;


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