Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2015 16:58:23 -0700
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>,  FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use)
Message-ID:  <CAG=rPVe-wZp4VkxD9przXU3Dx69BhXvc6R3-U4oQxrWi%2B4-xjw@mail.gmail.com>
In-Reply-To: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net>
References:  <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard <markmi@dsl-only.net> wrote:

>
> /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing
> type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
>        bt_preserve(t, *(pgno_t *)bl->bytes) == RET_ERROR)
>

You will get many of these warnings all over the codebase.
You should add NO_WERROR=
to your make invocation, or put NO_WERROR= in make.conf.

That's what I do here:
https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull

--
Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVe-wZp4VkxD9przXU3Dx69BhXvc6R3-U4oQxrWi%2B4-xjw>