Skip to content

Commit

Permalink
Makefile: avoid warning in one Musl source file
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nyh authored and wkozaczuk committed Jun 14, 2021
1 parent d4fe97c commit b589e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b589e38

Please sign in to comment.