From b44380845272e6d009fb88f7deafc7f60c0cd03a Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 5 Mar 2019 07:27:56 +0800 Subject: [PATCH] event.cpp: die if invalid event type passed Fixes the build with -Wreturn-type. --- src/event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.cpp b/src/event.cpp index dfe991a53..f04afefc0 100644 --- a/src/event.cpp +++ b/src/event.cpp @@ -183,7 +183,7 @@ wcstring event_get_desc(const event_t &evt) { return format_string(_(L"handler for generic event '%ls'"), ed.str_param1.c_str()); } default: - assert(0 && "Unknown event type"); + DIE("Unknown event type"); } }