Date: Wed, 11 Sep 2013 18:23:21 -0500 From: Nathan Whitehorn <nwhitehorn@freebsd.org> To: mi@aldan.algebra.com Cc: Kenta Suzumoto <kentas@hush.com>, ports@freebsd.org, Stefan Farfeleder <stefanf@FreeBSD.org> Subject: Re: graphics/libfpx fails to build Message-ID: <5230FB69.10807@freebsd.org> In-Reply-To: <5230F68E.8040001@aldan.algebra.com> References: <20130902004058.12F03200DE@smtp.hushmail.com> <52242436.30704@aldan.algebra.com> <20130902061326.6CF79200E0@smtp.hushmail.com> <5230F68E.8040001@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09/11/13 18:02, mi@aldan.algebra.com wrote: > On 02.09.2013 02:13, Kenta Suzumoto wrote: >> Still doesn't build with Clang for me. > The failure is triggered by the -Wself-assign warning: >> /wrkdirs/usr/ports/graphics/libfpx/work/libfpx-1.3.1-2/oless/h/fat.hxx:368:63: >> error: explicitly assigning a variable of type 'SCODE' (aka 'int') to >> itself [-Werror,-Wself-assign] >> do if (((HRESULT)(sc = (FindMaxSect(&_sectMax)))<0)) { sc = sc; >> goto Err;} while(0); >> ~~ ^ ~~ > which puzzles me, because it is not explicitly turned on on 10.x. I > could not reproduce it on 9.x either -- even with clang-3.3. > > I just committed yet another update of the port -- adding a patch, > whose author assured me, the port builds with the change. He has not > experienced the self-assigning warning/error you are seeing. Could it > be, you -current is out of date? It is such a moving target, it is > hard to keep track :-( > > Thanks, > > -mi These updates fixed the build for me, anyway -- I was having the same issues. Thanks! -Nathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5230FB69.10807>