Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 19:13:34 +0400
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>, Hiroki Sato <hrs@freebsd.org>
Cc:        current@freebsd.org, ia64@freebsd.org
Subject:   Re: [head tinderbox] failure on ia64/ia64
Message-ID:  <CAE-mSOLoDPbZduBDgAk7j7GhCKmJoBGNGmxfeqiOddF2jk1Esg@mail.gmail.com>
In-Reply-To: <201306281422.r5SEMPxk009049@freebsd-current.sentex.ca>
References:  <201306281422.r5SEMPxk009049@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 June 2013 18:22, FreeBSD Tinderbox <tinderbox@freebsd.org> wrote:
> [...]
> (cd /src/rescue/rescue/../../sbin/swapon &&  /obj/src/make.amd64/make -DR=
ESCUE CRUNCH_CFLAGS=3D-DRESCUE DIRPRFX=3Drescue/rescue/swapon/ depend && /o=
bj/src/make.amd64/make -DRESCUE CRUNCH_CFLAGS=3D-DRESCUE DIRPRFX=3Drescue/r=
escue/swapon/ swapon.o)
> rm -f .depend
> CC=3D'cc ' mkdep -f .depend -a    -DRESCUE -std=3Dgnu99   /src/sbin/swapo=
n/swapon.c
> echo swapon: /obj/ia64.ia64/src/tmp/usr/lib/libc.a /obj/ia64.ia64/src/tmp=
/usr/lib/libutil.a >> .depend
> cc  -O2 -pipe  -DRESCUE -std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-=
format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototype=
s -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshad=
ow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-exte=
rns -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/sbin=
/swapon/swapon.c
> cc1: warnings being treated as errors
> /src/sbin/swapon/swapon.c: In function 'swap_on_off_geli':
> /src/sbin/swapon/swapon.c:394: warning: cast discards qualifiers from poi=
nter target type
> *** Error code 1

To my belief, it's wrong to use a const variable for strdup/free.

--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOLoDPbZduBDgAk7j7GhCKmJoBGNGmxfeqiOddF2jk1Esg>