Date: Sat, 16 Mar 2002 19:34:19 -0800 (PST) From: Jeff Kletsky <jeff+freebsd@spotlife.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/35993: sys/dev/amr/amr.c - Compiler warnings under 5.0-CURRENT Message-ID: <200203170334.g2H3YJd35155@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 35993 >Category: kern >Synopsis: sys/dev/amr/amr.c - Compiler warnings under 5.0-CURRENT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 16 19:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jeff Kletsky >Release: 5.0-CURRENT 2002/03/16 >Organization: SpotLife >Environment: FreeBSD .pn.wagsky.com 5.0-20020311-CURRENT FreeBSD 5.0-20020311-CURRENT #0: Mon Mar 11 12:07:33 GMT 2002 root@usw2.freebsd.org:/usr/src/sys/i386/compile/GENERIC i386 >Description: While compiling GENERIC after cvsup of today 16:13 PST and again at 18:23, there appears to be a problem with the type of sc->amr_drive[driveno].al_size not being an unsigned int in amr.c: if ((bio->bio_pblkno + blkcount) > sc->amr_drive[driveno].al_size) device_printf(sc->amr_dev, "I/O beyond end of unit (%u,%d > %u)\n", bio->bio_pblkno, blkcount, sc->amr_drive[driveno].al_size) ; (Sorry, couldn't track down where struct sc was declared) ***** Resolved with -DNO_WERROR cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include -D_KERNEL -ffreestanding -include opt_global.h -fno-common -elf -mpreferred-stack-boundary=2 -Werror /usr/src/sys/dev/amr/amr.c cc1: warnings being treated as errors /usr/src/sys/dev/amr/amr.c: In function `amr_bio_command': /usr/src/sys/dev/amr/amr.c:817: warning: unsigned int format, different type arg (arg 3) *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. >How-To-Repeat: cvsup the sources make kernel >Fix: Workaround: make -DNO_WERROR kernel >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203170334.g2H3YJd35155>