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

From: Sean Winn (sean_at_gothic.net.au)
Date: 11/27/05

  • Next message: Randy Bush: "Re: uipc_mqueue.c:1832: warning: 'mq' might be used uninitialized in this function"
    Date: Mon, 28 Nov 2005 09:10:48 +1100
    To: Michael C.Shultz <ringworm01@gmail.com>
    
    
    

    On 28/11/2005, at 7:58 AM, Michael C. Shultz wrote:

    > 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
    >

    Unlikely seeing -Werror is the default for kernel builds and has been
    for a while.

    NO_WERROR is what turns it off.

    > -Mike
    >
    >
    >> -DHAVE_KERNEL_OPTION_HEADERS -include
    >> /usr/obj/usr/src/sys/ROAM/opt_global.h -I. -I@ -I@/contrib/altq
    >> -I@/../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@ -I@/contrib/altq
    >> -I@/../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@freebsd.org mailing list
    >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
    >> To unsubscribe, send any mail to "freebsd-current-
    >> unsubscribe@freebsd.org"
    > _______________________________________________
    > freebsd-current@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-current
    > To unsubscribe, send any mail to "freebsd-current-
    > unsubscribe@freebsd.org"
    >


  • Next message: Randy Bush: "Re: uipc_mqueue.c:1832: warning: 'mq' might be used uninitialized in this function"

    Relevant Pages

    • Re: 2.7 thoughts: common well-architected object model
      ... Coming from the kernel an outline of a common ... A core component model has to be defined by the kernel ... Linux to scale as well as it does. ...
      (Linux-Kernel)
    • freebsd4.7 compile kernel error
      ... *** Error code 1 ... the kernel config file: ... pseudo-device splash ... # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver ...
      (comp.unix.bsd.freebsd.misc)
    • Unassociated shell command when building kernel
      ... kernel build, I get what appear to be make errors with the error ... echo ln gzip gunzip>>rescue.conf ... *** Error code 1 ...
      (freebsd-questions)
    • Error in kernel source, possibly GCC related
      ... I am at this moment compiling the kernel, and I get this error when make ... *** Error code 1 ... # Floating point support - do not disable. ... # PCI Ethernet NICs that use the common MII bus controller code. ...
      (freebsd-stable)
    • Re: New DTrace source snapshot
      ... A number of things were missing from the dtrace kernel ... This is a snapshot of current which contains lock order ... This snapshot extends the basic OpenSolaris DTrace functionality ... *** Error code 1 ...
      (freebsd-current)