From: Nadav Har'El <[email protected]> Committer: Waldemar Kozaczuk <[email protected]> Branch: master
Makefile: avoid warning in one Musl source file 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 <[email protected]> Message-Id: <[email protected]> --- diff --git a/Makefile b/Makefile --- 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 -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000009f636705c4bdef06%40google.com.
