[IMPROVEMENT] Add noreturn attribute to fatal (#1179)

* Set no return

* Add MSVC
This commit is contained in:
Nils ANDRÉ-CHANG 2020-01-23 07:25:43 +00:00 committed by Carlos Fernandez Sanz
parent a919ef4410
commit 60773bb859

View File

@ -250,6 +250,11 @@ int myth_loop(struct lib_ccx_ctx *ctx);
int matroska_loop(struct lib_ccx_ctx *ctx);
// utility.c
#if defined(__GNUC__)
__attribute__ ((noreturn))
#elif defined(_MSC_VER)
__declspec(noreturn)
#endif
void fatal(int exit_code, const char *fmt, ...);
void mprint (const char *fmt, ...);
void sleep_secs (int secs);