]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/nolibc: ignore -Wmissing-prototypes
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 23 Jan 2025 20:10:43 +0000 (21:10 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 3 Feb 2025 19:57:38 +0000 (20:57 +0100)
commit69ccba67d7cd9d92f313164eb00606b553a6d188
treec5a59d7254aae3549440eafd42f8e5b5e60835ef
parent0de64754a55470adb0a870f3105c8922334bb6fe
selftests/nolibc: ignore -Wmissing-prototypes

To make sure nolibc itself is compatible with -Wmissing-prototypes the
compiler flag should be enabled when building nolibc-test.
However some of its functions are non-static to ease debugging [0],
triggering the compiler warning.

Disable the warning inside nolibc-test while still enabling it for
nolibc itself.

[0] https://lore.kernel.org/lkml/ZMjM0UPRAqoC+goY@1wt.eu/

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250123-nolibc-prototype-v1-2-e1afc5c1999a@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/nolibc-test.c