svn commit: r352112 - in head: share/man/man4 sys/net

Rebecca Cran bcran at freebsd.org
Tue Sep 10 01:39:58 UTC 2019


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20190909/0b06cd95/attachment.sig>


More information about the svn-src-all mailing list