From b94e7f953f5a9fcb3773c1a01e63bd5df8a61fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 13 Jan 2023 19:28:48 +0000 Subject: [PATCH] MinGW: Fix -Wreturn-type main.cpp:1087:1: error: no return statement in function returning non-void [-Werror=return-type] 1087 | } | ^ --- ui/ws_ui_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ws_ui_util.h b/ui/ws_ui_util.h index 9c4dd386b4..3250559ccc 100644 --- a/ui/ws_ui_util.h +++ b/ui/ws_ui_util.h @@ -43,7 +43,7 @@ typedef struct window_geometry_s { extern void main_window_update(void); /* Exit routine provided by UI-specific code. */ -extern void exit_application(int status); +WS_NORETURN extern void exit_application(int status); /* XXX - Yes this isn't the best place, but they are used by file_dlg_win32.c, which is supposed to be GUI independent, but has lots of GTK leanings. But if you put these in a GTK UI