gcc 11 warns for musl/src/prng/seed48.c that seed48()'s signature in
the header file has a 3-char array, but the implementation has a char
pointer. This is correct, but gcc now warns about such inconsistencies,
and we turn those warnings into errors. Because this is an original
Musl source file that we don't want to needlessly change, let's just
avoid the warning with CFLAGS += -Wno-array-parameter for this specific
file.

Signed-off-by: Nadav Har'El <n...@scylladb.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index f33b1cdb..7ba76820 100644
--- a/Makefile
+++ b/Makefile
@@ -1403,6 +1403,7 @@ musl += prng/lcong48.o
 musl += prng/lrand48.o
 musl += prng/mrand48.o
 musl += prng/seed48.o
+$(out)/musl/src/prng/seed48.o: CFLAGS += -Wno-array-parameter
 musl += prng/srand48.o
 libc += random.o
 
-- 
2.31.1

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/20210614062057.1998552-7-nyh%40scylladb.com.

Reply via email to