Date: Tue, 18 Apr 2017 07:38:39 +0200 From: "O. Hartmann" <ohartmann@walstatt.org> To: Gary Jennejohn <gljennjohn@gmail.com> Cc: current@freebsd.org Subject: Re: strange compile error in scvgarndr.c Message-ID: <20170418073839.71e29856@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <20170417101459.68af2877@ernst.home> References: <20170417101459.68af2877@ernst.home>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 17 Apr 2017 10:14:59 +0200
Gary Jennejohn <gljennjohn@gmail.com> wrote:
> I'm seeing this very strange error when I try to make a kernel using
> sources updated about 5 minutes ago:
>
> --------------------------------------------------------------
> >>> stage 3.1: building everything
> --------------------------------------------------------------
> /usr/src/sys/dev/syscons/scvgarndr.c:177:31: error: unused variable
> 'mouse10x16' [-Werror,-Wunused-const-variable]
> static const struct mousedata mouse10x16 = { {
> ^
> 1 error generated.
> *** Error code 1
>
> Even if I add "mpd = &mouse10x16;" before the test for font size in
> various places the compiler spits out this error message.
>
> Maybe my compiler is too old? I'm using
> cc --version
> FreeBSD clang version 4.0.0 (branches/release_40 296509) (based on LLVM 4.0.0)
> Target: x86_64-unknown-freebsd12.0
> Thread model: posix
> InstalledDir: /usr/bin
>
I see this error, too, on one box.
/usr/src ist at revision 317077.
Host's OS:
FreeBSD 12.0-CURRENT #13 r316677: Mon Apr 10 14:24:06 CEST 2017 amd64
cc --version:
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM
4.0.0) Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170418073839.71e29856>
