Re: ia64 r255472: /usr/src/sys/kern/uipc_syscalls.c:2196: warning: obj_size may be used uninitialized in this function

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 12 Sep 2013 17:13:22 +0200
On Sep 12, 2013, at 10:37, Anton Shterenlikht <mexas_at_bris.ac.uk> wrote:
> ia64 r255472 buildkernel gives this error:
> 
> cc  -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror  /usr/src/sys/kern/uipc_syscalls.c
> cc1: warnings being treated as errors
> /usr/src/sys/kern/uipc_syscalls.c: In function 'vn_sendfile':
> /usr/src/sys/kern/uipc_syscalls.c:2196: warning: 'obj_size' may be used uninitialized in this function
> /usr/src/sys/kern/uipc_syscalls.c:2192: warning: 'pg' may be used uninitialized in this function
> *** [uipc_syscalls.o] Error code 1

Kostik fixed this in r255475.  You're just 3 revs short. :-)

-Dimitry



Received on Thu Sep 12 2013 - 13:13:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC