Explorar o código

libobs: Fix crash handler noreturn compiler warning

Maybe not the most correct solution since it never gets hit but much
less code and ifdefs compared to what we'd have else wise.
gxalpha %!s(int64=3) %!d(string=hai) anos
pai
achega
9d68c8a848
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      libobs/util/base.c

+ 1 - 0
libobs/util/base.c

@@ -103,6 +103,7 @@ OBS_NORETURN void bcrash(const char *format, ...)
 	va_start(args, format);
 	crash_handler(format, args, crash_param);
 	va_end(args);
+	exit(0);
 }
 
 void blogva(int log_level, const char *format, va_list args)