]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: don't validate that numbers are found from headers
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 23 Jul 2023 19:16:53 +0000 (21:16 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 23 Jul 2023 19:16:53 +0000 (21:16 +0200)
Users can specify plain numbers so it's fine to not have any aliases.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index 6754dd235fb64dbd7ce69b4d31e4e4fe58c74ebb..8415c63b5c9eaddc358921bb12fc00649f633c45 100644 (file)
@@ -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)
 {