Files
profanity/src
Michael Vetter 12b997c5f3 ui: make it easier to find non covered window types
Rewrite `win_get_title()` to using switch without a default case. So the compiler warns us
(`enumeration value ‘WIN_XXX’ not handled in switch`)
in case we add a new window type (WIN_CHAT, WIN_PRIV etc) and forget to
adapt this function.

Add assert() in the end to make compiler happy when he realizes there
the function might have no return value (`control reaches end of
non-void function`). This should ever be reached.

Replace the default value of `win_to_string()`, `win_get_tab_identifier()` as
well, and replace it with an assert.

See discussion started at https://github.com/profanity-im/profanity/pull/1799#discussion_r1142444684
2023-03-23 10:20:04 +01:00
..
2023-01-10 10:37:25 +01:00
2023-03-12 17:37:21 +01:00
2023-01-10 10:37:25 +01:00
2022-06-28 20:08:38 +02:00
2023-01-18 20:11:13 +01:00
2023-01-10 10:37:25 +01:00
2023-01-18 20:02:46 +01:00
2023-01-18 20:02:46 +01:00
2023-01-10 10:37:25 +01:00
2023-01-18 20:02:46 +01:00
2023-01-10 10:37:25 +01:00