From fca2b2a023869dff65f5258b713956d4d3d53306 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 23 Jul 2023 21:16:53 +0200 Subject: [PATCH] enosys: don't validate that numbers are found from headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Users can specify plain numbers so it's fine to not have any aliases. Signed-off-by: Thomas Weißschuh --- misc-utils/enosys.c | 2 -- 1 file changed, 2 deletions(-) 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) { -- 2.47.3