maint: use static_assert

* gnulib.modules: Add assert-h, for static_assert.
* src/common.h, src/list.c, src/misc.c:
Prefer static_assert to #if + #error.  This doesn’t fix any bugs; it’s
just that in general it’s better to avoid the preprocessor.
This commit is contained in:
Paul Eggert
2024-07-30 16:19:35 -07:00
parent dcc90722ac
commit c6a5af16ba
4 changed files with 14 additions and 17 deletions

View File

@@ -22,6 +22,7 @@ areadlinkat-with-size
argmatch
argp
argp-version-etc
assert-h
attribute
backupfile
c-ctype