Re: uipc_mqueue.c:1832: warning: 'mq' might be used uninitialized in this function

From: Michael C. Shultz <ringworm01_at_gmail.com>
Date: Sun, 27 Nov 2005 12:58:21 -0800
On Sunday 27 November 2005 12:54, Randy Bush wrote:
> cvsup at 20:39
>
> cc -O -pipe -march=pentiumpro -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- 
						^^^^^^^^^^^^^

get rid of -Werror in you CFLAGS, likely you set this in /etc/make.conf

-Mike


>  -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/ROAM/opt_global.h -I. -I_at_ -I_at_/contrib/altq
> -I_at_/../include -finline-limit=8000 -fno-common -g
> -I/usr/obj/usr/src/sys/ROAM -mno-align-long-strings
> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual  -fformat-extensions -std=c99 -c
> /usr/src/sys/modules/mpt/../../dev/mpt/mpt_raid.c ld  -d -warn-common -r -d
> -o mpt.kld mpt.o mpt_cam.o mpt_debug.o mpt_pci.o mpt_raid.o touch
> export_syms
> awk -f /usr/src/sys/modules/mpt/../../conf/kmod_syms.awk mpt.kld 
> export_syms | xargs -J% objcopy % mpt.kld ld -Bshareable  -d -warn-common
> -o mpt.ko.debug mpt.kld
> objcopy --only-keep-debug mpt.ko.debug mpt.ko.symbols
> objcopy --strip-debug --add-gnu-debuglink=mpt.ko.symbols mpt.ko.debug
> mpt.ko ===> mqueue (all)
> cc -O -pipe -march=pentiumpro -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- 
>  -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/ROAM/opt_global.h -I. -I_at_ -I_at_/contrib/altq
> -I_at_/../include -finline-limit=8000 -fno-common -g
> -I/usr/obj/usr/src/sys/ROAM -mno-align-long-strings
> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual  -fformat-extensions -std=c99 -c
> /usr/src/sys/modules/mqueue/../../kern/uipc_mqueue.c
> /usr/src/sys/modules/mqueue/../../kern/uipc_mqueue.c: In function
> `mq_open': /usr/src/sys/modules/mqueue/../../kern/uipc_mqueue.c:1832:
> warning: 'mq' might be used uninitialized in this function *** Error code 1
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sun Nov 27 2005 - 20:09:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC