diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-27 15:59:57 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 17:33:20 -0400 |
commit | 386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (patch) | |
tree | e9ff160e7e5cd21f4ee72b2822e33a921acb726f /src/ioq.c | |
parent | a37a564b66b363cc509cc5cdd16fd65b7950b0be (diff) | |
download | bfs-386fc8817e637fdd52c20e4ace6cc4ea1f1186ed.tar.xz |
diag: Get rid of bfs_static_assert()
In most cases, it's not too annoying to specify a message. For
tests/bit.c, we can manually polyfill the 1-argument version.
Diffstat (limited to 'src/ioq.c')
-rw-r--r-- | src/ioq.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -180,8 +180,7 @@ typedef atomic uintptr_t ioq_slot; /** Amount to add for an additional skip. */ #define IOQ_SKIP_ONE (~IOQ_BLOCKED) -// Need room for two flag bits -bfs_static_assert(alignof(struct ioq_ent) >= (1 << 2)); +static_assert(alignof(struct ioq_ent) >= (1 << 2), "struct ioq_ent is underaligned"); /** * An MPMC queue of I/O commands. |