Module Name: src Committed By: rillig Date: Sat Jul 3 19:34:47 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: d_cast_init.c Log Message: tests/lint: fix test d_cast_init on macppc On macppc, char == unsigned, which generated the following unintended warnings: d_cast_init.c(18): warning: initialization of unsigned with negative constant [221] d_cast_init.c(18): warning: initialization of unsigned with negative constant [221] d_cast_init.c(18): warning: initialization of unsigned with negative constant [221] d_cast_init.c(18): warning: initialization of unsigned with negative constant [221] To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/d_cast_init.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint1/d_cast_init.c diff -u src/tests/usr.bin/xlint/lint1/d_cast_init.c:1.4 src/tests/usr.bin/xlint/lint1/d_cast_init.c:1.5 --- src/tests/usr.bin/xlint/lint1/d_cast_init.c:1.4 Sun Jan 31 14:57:28 2021 +++ src/tests/usr.bin/xlint/lint1/d_cast_init.c Sat Jul 3 19:34:47 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: d_cast_init.c,v 1.4 2021/01/31 14:57:28 rillig Exp $ */ +/* $NetBSD: d_cast_init.c,v 1.5 2021/07/03 19:34:47 rillig Exp $ */ # 3 "d_cast_init.c" /* cast initialization */ @@ -8,7 +8,7 @@ typedef unsigned char u_char; struct sockaddr_x25 { u_char x25_len; u_char x25_family; - char x25_udata[4]; + signed char x25_udata[4]; }; struct sockaddr_x25 x25_dgmask = {