mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
[[noreturn]] on cquery_unreachable_internal
This commit is contained in:
parent
e44109aee9
commit
c43b197b99
@ -3,7 +3,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
void cquery_unreachable_internal(const char* msg, const char* file, int line) {
|
[[noreturn]] void cquery_unreachable_internal(const char* msg, const char* file, int line) {
|
||||||
fprintf(stderr, "unreachable %s:%d %s\n", file, line, msg);
|
fprintf(stderr, "unreachable %s:%d %s\n", file, line, msg);
|
||||||
CQUERY_BUILTIN_UNREACHABLE;
|
CQUERY_BUILTIN_UNREACHABLE;
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
Reference in New Issue
Block a user