From e49bf693efbe7ea54ac2c812c574cae1a09bbebf Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 16 May 2023 11:29:34 -0400 Subject: trie: Use bfs_static_assert() --- src/trie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trie.c b/src/trie.c index e0e00ff..5427d79 100644 --- a/src/trie.c +++ b/src/trie.c @@ -83,6 +83,7 @@ #include "trie.h" #include "config.h" +#include "diag.h" #include "list.h" #include #include @@ -90,7 +91,7 @@ #include #include -static_assert(CHAR_BIT == 8, "This trie implementation assumes 8-bit bytes."); +bfs_static_assert(CHAR_BIT == 8); #if BFS_TARGET_CLONES && (__i386__ || __x86_64__) # define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default"))) -- cgit v1.2.3