diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-07-28 10:47:59 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-07-28 10:54:34 -0400 |
commit | 26f3c379c1603ebdc35d1653b677b9e22685fd81 (patch) | |
tree | 7767d85b72bd46fe5bd8de772c453f0654fb780a /src/diag.c | |
parent | a12c4dbf12f5dff559abc4464b905842031696da (diff) | |
download | bfs-26f3c379c1603ebdc35d1653b677b9e22685fd81.tar.xz |
prelude: Simplify attributes
Diffstat (limited to 'src/diag.c')
-rw-r--r-- | src/diag.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -15,7 +15,7 @@ #include <stdlib.h> /** bfs_diagf() implementation. */ -attr(printf(2, 0)) +_printf(2, 0) static void bfs_vdiagf(const struct bfs_loc *loc, const char *format, va_list args) { fprintf(stderr, "%s: %s@%s:%d: ", xgetprogname(), loc->func, loc->file, loc->line); vfprintf(stderr, format, args); @@ -29,7 +29,8 @@ void bfs_diagf(const struct bfs_loc *loc, const char *format, ...) { va_end(args); } -noreturn void bfs_abortf(const struct bfs_loc *loc, const char *format, ...) { +_noreturn +void bfs_abortf(const struct bfs_loc *loc, const char *format, ...) { va_list args; va_start(args, format); bfs_vdiagf(loc, format, args); |