From: Thomas Weißschuh Date: Sun, 23 Jul 2023 19:16:53 +0000 (+0200) Subject: enosys: don't validate that numbers are found from headers X-Git-Tag: v2.40-rc1~275^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fca2b2a023869dff65f5258b713956d4d3d53306;p=thirdparty%2Futil-linux.git enosys: don't validate that numbers are found from headers Users can specify plain numbers so it's fine to not have any aliases. Signed-off-by: Thomas Weißschuh --- diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c index 6754dd235f..8415c63b5c 100644 --- a/misc-utils/enosys.c +++ b/misc-utils/enosys.c @@ -63,12 +63,10 @@ static const struct syscall syscalls[] = { #include "syscalls.h" #undef UL_SYSCALL }; -static_assert(sizeof(syscalls) > 0, "no syscalls found"); static const struct syscall ioctls[] = { { "FIOCLEX", FIOCLEX }, }; -static_assert(sizeof(ioctls) > 0, "no ioctls found"); static void __attribute__((__noreturn__)) usage(void) {