Skip to content

Commit 69ccba6

Browse files
committed
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/[email protected]/ Acked-by: Willy Tarreau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent 0de6475 commit 69ccba6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/nolibc/nolibc-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#endif
4444
#endif
4545

46+
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
47+
4648
#include "nolibc-test-linkage.h"
4749

4850
/* for the type of int_fast16_t and int_fast32_t, musl differs from glibc and nolibc */

0 commit comments

Comments
 (0)