mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +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:
|
case CALLS_CALL_STATE_DISCONNECTED:
|
||||||
return ENDED;
|
return ENDED;
|
||||||
}
|
|
||||||
|
|
||||||
g_assert_not_reached ();
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -561,6 +562,7 @@ state_changed_cb (CallsRecordStore *self,
|
||||||
stamp_call (record, "end");
|
stamp_call (record, "end");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case STARTED:
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
break;
|
||||||
|
@ -573,12 +575,15 @@ state_changed_cb (CallsRecordStore *self,
|
||||||
stamp_call (record, "end");
|
stamp_call (record, "end");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case STARTED:
|
||||||
|
case ANSWERED:
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ENDED:
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue