diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-19 13:10:22 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-02-19 13:10:22 +0300 |
commit | 7d7953cb46099a2517822b5832d49351eeecbde1 (patch) | |
tree | 36870cca6282667dacc5c0385c42a76dd00cf1f3 /util/system/compat.h | |
parent | 709f0db82ea5003ac1f26d3206f1904ec17bbe92 (diff) | |
download | ydb-7d7953cb46099a2517822b5832d49351eeecbde1.tar.gz |
Properly attribute err.h replacements as [[noreturn]]
ref:e86419934a6858c3f36f45e15d1e42cc501ea395
Diffstat (limited to 'util/system/compat.h')
-rw-r--r-- | util/system/compat.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/system/compat.h b/util/system/compat.h index c53dbcca17..437e287497 100644 --- a/util/system/compat.h +++ b/util/system/compat.h @@ -37,13 +37,15 @@ extern "C" { #endif #if defined(_MSC_VER) - void err(int e, const char* m, ...); - void errx(int e, const char* m, ...); void warn(const char* m, ...); void warnx(const char* m, ...); void vwarnx(const char* format, va_list ap); void vwarn(const char* format, va_list ap); - void verrx(int status, const char* format, va_list ap); + + [[noreturn]] void err(int e, const char* m, ...); + [[noreturn]] void errx(int e, const char* m, ...); + [[noreturn]] void verr(int status, const char* fmt, va_list args); + [[noreturn]] void verrx(int status, const char* format, va_list ap); #else #include <err.h> #endif |