mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 06:56:01 -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)
|
} while(0)
|
||||||
|
|
||||||
/* Used by CHECK_*() macros */
|
/* Used by CHECK_*() macros */
|
||||||
void log_fatal_err(int domain, const char *func, int line, int err);
|
void
|
||||||
void log_fatal_errno(int domain, const char *func, int line);
|
log_fatal_err(int domain, const char *func, int line, int err) __attribute__((__noreturn__));
|
||||||
void log_fatal_null(int domain, const char *func, int line);
|
|
||||||
|
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__ */
|
#endif /* !__MISC_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user