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

From: Michael C. Shultz (ringworm01_at_gmail.com)
Date: 11/27/05

  • Next message: Sam Lawrance: "Re: uipc_mqueue.c:1832: warning: 'mq' might be used uninitialized in this function"
    To: Randy Bush <randy@psg.com>
    Date: Sun, 27 Nov 2005 13:24:44 -0800
    
    

    On Sunday 27 November 2005 13:17, Michael C. Shultz wrote:
    > On Sunday 27 November 2005 13:11, Randy Bush wrote:
    > > >> 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
    > >
    > > it is not set in make.conf
    > >
    > > KERNCONF=MYNAME
    > > #CPUTYPE=pentium-m
    > > CPUTYPE?=i686
    > > CFLAGS=-O -pipe
    > > #CFLAGS+=-pthread
    > > COPTFLAGS=-O -pipe
    > > NO_GAMES=true
    > > NO_PROFILE=true
    > > NO_BIND=true
    > > NO_I4B=true
    > > NO_IPFILTER=true
    > > NO_KERBEROS=true
    > > NO_MAILWRAPPER=true
    > > NO_OBJC=true
    > > NO_SENDMAIL=true
    > > MAKE_IDEA=YES
    > > X_WINDOW_SYSTEM=xorg
    > > HAVE_MOTIF=yes
    > > MOTIFLIB=-L${X11BASE}/lib -lXm
    > > USA_RESIDENT=YES
    > > FORCE_PKG_REGISTER=YES
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    Here is something else you should fix while your hunting down that -Werror
    switch, Kris Kennway just posted good advice about why this is a dumb thing
    to do a week or two ago, you might want to search the mail archives and look
    it up.

    -Mike

    > > ENABLE_WPA_SUPPLICANT_EAPOL=YES
    > > MASTER_SITE_BACKUP?= \
    > > ftp://ftp2.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
    > > MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}
    > > GNOME_DESKTOP_VERSION= 2
    > > MASTER_SITE_GNOME= \
    > > http://www.gtlib.cc.gatech.edu/pub/gnome/%SUBDIR%/ \
    > > http://public.planetmirror.com/pub/gnome/%SUBDIR%/ \
    > > ftp://ftp.cse.buffalo.edu/pub/Gnome/%SUBDIR%/ \
    > > http://archive.progeny.com/GNOME/%SUBDIR%/ \
    > > http://ftp.gnome.org/pub/GNOME/%SUBDIR%/
    > > WITH_LAME= yes
    > >
    > > # added by use.perl 2005-07-07 15:22:00
    > > PERL_VER=5.8.7
    > > PERL_VERSION=5.8.7
    >
    > According to http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
    >
    > -Werror
    > Make all warnings into errors.
    >
    > So you either need to fix all warnings or track down where this -Werror
    > switch is comming from.
    >
    > -Mike
    _______________________________________________
    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: Sam Lawrance: "Re: uipc_mqueue.c:1832: warning: 'mq' might be used uninitialized in this function"

    Relevant Pages

    • [git pull for 2.6.22-rc4 - resend] kbuild: fix sh64 section mismatch problems
      ... Please apply following 2 liners fix. ... It will fix a lot of false section mismatch warnings on sh64 and ... Subject: kbuild: fix sh64 section mismatch problems ... Silence the warnings by allowing references from .init.text to .cranges. ...
      (Linux-Kernel)
    • [PATCH for -rc] kbuild: fix sh64 section mismatch problems
      ... Please apply following 2 liners fix. ... It will fix a lot of false section mismatch warnings on sh64 and ... Subject: kbuild: fix sh64 section mismatch problems ... Silence the warnings by allowing references from .init.text to .cranges. ...
      (Linux-Kernel)
    • Re: whats the ifc corresponding argument for -bp in absoft f90
      ... > The problem is dsinwhere y is a single precision floating point while ... Guess I have to ask why you don't just fix the code? ... Is this the *ONLY* reason you are using the -dp option? ... I wouldn't guarantee that it necessarily has such a switch. ...
      (comp.lang.fortran)
    • Re: HELP: Williams System 7 Solenoid Woes
      ... I've been trying to fix this on my own for a while now, ... once it has been on for about a minute, the pop-bumper locks up again. ...  I love this game and really ... the switch closing it. ...
      (rec.games.pinball)
    • Re: MWC (17/10/07)
      ... Fix my DC, or give up and buy a new one. ... I think it was actually you who suggested a month or two ago that the lid ... Dreamcasts have that switch on a separate little daughterboard, ... just some wires leading outside. ...
      (uk.games.video.misc)