On 2019-09-09 16:54, Conrad Meyer wrote: > Author: cem > head/share/man/man4/ddb.4 > head/sys/net/rtsock.c
I'm seeing the following errors when building:
--- rtsock.o ---
pointer-sign -Wno-error-shift-negative-value
-Wno-address-of-packed-member -Wno-format-zero-length -mno-aes
-mno-avx -std=iso9899:1999 -Werror /usr/src/sys/net/rtsock.c
/usr/src/sys/net/rtsock.c:2108:13: error: format string is not a string
literal (potentially insecure) [-Werror,-Wformat-security]
db_printf(rt_flag_name(idx));
^~~~~~~~~~~~~~~~~
/usr/src/sys/net/rtsock.c:2108:13: note: treat the string as an argument
to avoid this
db_printf(rt_flag_name(idx));
^
"%s",
/usr/src/sys/net/rtsock.c:2370:13: error: variable 'dstp' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized]
} else if (af == AF_INET6) {
^~~~~~~~~~~~~~
/usr/src/sys/net/rtsock.c:2385:16: note: uninitialized use occurs here
rt = rtalloc1(dstp, 0, RTF_RNH_LOCKED);
^~~~
--
Rebecca Cran
signature.asc
Description: OpenPGP digital signature
