diff options
author | João Valverde <j@v6e.pt> | 2023-01-13 19:28:48 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-01-13 22:41:04 +0000 |
commit | b94e7f953f5a9fcb3773c1a01e63bd5df8a61fce (patch) | |
tree | 018816fe45652b7e569cb06b36581bf585c72a50 | |
parent | 6801490aeac10683a790160884894d515b15c0eb (diff) |
MinGW: Fix -Wreturn-type
main.cpp:1087:1: error: no return statement in function returning non-void [-Werror=return-type]
1087 | }
| ^
-rw-r--r-- | ui/ws_ui_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |