mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
record-store: Add default case to switch statements
As caught by compiling with `-Wswitch-default`
This commit is contained in:
parent
f097a39e04
commit
90b598ed5b
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue