mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[misc] Add __attribute__((__noreturn__)) to our abort functions so
scan-build doesn't complain about logic errors after abort
This commit is contained in:
parent
f6209fe80c
commit
497ffc2f43
11
src/misc.h
11
src/misc.h
@ -192,8 +192,13 @@ mutex_init(pthread_mutex_t *mutex);
|
||||
} while(0)
|
||||
|
||||
/* Used by CHECK_*() macros */
|
||||
void log_fatal_err(int domain, const char *func, int line, int err);
|
||||
void log_fatal_errno(int domain, const char *func, int line);
|
||||
void log_fatal_null(int domain, const char *func, int line);
|
||||
void
|
||||
log_fatal_err(int domain, const char *func, int line, int err) __attribute__((__noreturn__));
|
||||
|
||||
void
|
||||
log_fatal_errno(int domain, const char *func, int line) __attribute__((__noreturn__));
|
||||
|
||||
void
|
||||
log_fatal_null(int domain, const char *func, int line) __attribute__((__noreturn__));
|
||||
|
||||
#endif /* !__MISC_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user