From 5c5ae3962c46cf4051bcd6d4e2355422e63de42b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 3 Mar 2025 16:57:28 -0500 Subject: diag: Get rid of struct bfs_location Just add the standard prefix to the passed format string in the diagnostic macros themselves. This lets us write the whole message with one dprintf() call, minimizing interleaving. It's also a net win for binary size. --- build/has/compound-literal-storage.c | 6 ------ build/header.mk | 1 - 2 files changed, 7 deletions(-) delete mode 100644 build/has/compound-literal-storage.c (limited to 'build') diff --git a/build/has/compound-literal-storage.c b/build/has/compound-literal-storage.c deleted file mode 100644 index e2281e1..0000000 --- a/build/has/compound-literal-storage.c +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright © Tavian Barnes -// SPDX-License-Identifier: 0BSD - -int main(void) { - return (static int){0}; -} diff --git a/build/header.mk b/build/header.mk index 19cb175..0e3af14 100644 --- a/build/header.mk +++ b/build/header.mk @@ -19,7 +19,6 @@ HEADERS := \ gen/has/acl-is-trivial-np.h \ gen/has/acl-trivial.h \ gen/has/builtin-riscv-pause.h \ - gen/has/compound-literal-storage.h \ gen/has/confstr.h \ gen/has/dprintf.h \ gen/has/extattr-get-file.h \ -- cgit v1.2.3