Re: cam_periph.c compilation errors on the -CURRENT

From: Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>
Date: Fri, 29 Jun 2007 22:43:41 +0400
Alexander, good day.

Thu, Jun 28, 2007 at 08:36:54PM -0400, Alexander Kabaev wrote:
> > Today's CURRENT, i386 arch.  Got signedness warnings that were
> > transferred to errors because of compilation flags:
> > -----
> > cc -c -O2 -pipe -fno-strict-aliasing -march=pentium3 -Wall
> > -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> > -fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../..
> > -I../../../contrib/altq -I../../../contrib/ipfilter
> > -I../../../contrib/pf -I../../../dev/ath -I../../../contrib/ngatm
> > -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
> > opt_global.h -fno-common -finline-limit=8000 --param
> > inline-unit-growth=100 --param large-function-growth=1000
> > -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
> > -mno-3dnow -mno-sse -mno-sse2 -ffreestanding
> > -Werror  ../../../cam/cam_periph.c cc1: note: obsolete option -I-
> > used, please use -iquote instead cc1: warnings being treated as
> > errors ../../../cam/cam_periph.c: In function
> > 'cam_periph_mapmem': ../../../cam/cam_periph.c:651: warning: pointer
> > targets in assignment differ in
> > signedness ../../../cam/cam_periph.c:679: warning: pointer targets in
> > assignment differ in signedness *** Error code 1 ----- Not very
> > familiar with the cam subsystem, so can not judge what will be the
> > right way to fix this. -- Eygene
> 
> You are using wrong compiler on wrong sources.
> Do not do that, it rightfully hurts.

Ah, thank you: I checked out -STABLE instead of -CURRENT.  It is
very weird, but still: you're right, the sources were wrong.

Sorry for the noise.
-----
-- 
Eygene
Received on Fri Jun 29 2007 - 16:43:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC