diff options
author | Michael Vetter <jubalh@iodoru.org> | 2023-03-23 07:41:25 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2023-03-23 10:20:04 +0100 |
commit | 12b997c5f34776f34634d4ca155a14586aebc905 (patch) | |
tree | 9b1f80646ae4970e7d5be7ccba79131561af5754 /Dockerfile.debian | |
parent | b393363bd513bbea5d7ed5a0fccbef61aff07daa (diff) | |
download | profani-tty-12b997c5f34776f34634d4ca155a14586aebc905.tar.gz |
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
Diffstat (limited to 'Dockerfile.debian')
0 files changed, 0 insertions, 0 deletions