bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use)

Craig Rodrigues rodrigc at crodrigues.org
Fri Oct 9 23:58:24 UTC 2015


On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard <markmi at 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


More information about the freebsd-ppc mailing list