From: Bruce Cran <bruce@cran.org.uk>
To: Jens Axboe <axboe@kernel.dk>,
"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: FreeBSD build broken following _Static_assert commit
Date: Mon, 29 Jun 2015 21:41:20 -0600 [thread overview]
Message-ID: <55920FE0.60901@cran.org.uk> (raw)
In-Reply-To: <55920381.6060906@kernel.dk>
On 6/29/2015 8:48 PM, Jens Axboe wrote:
> Thanks for reporting this, Bruce. No idea why clang complains about
> that, it's definitely a constant expression. Anyway, committed this:
>
> http://git.kernel.dk/cgit/fio/commit/?id=94815a5c8366a9290167e8539f29994c2d43d15c
>
>
> which adds this sort of check to the configure _Static_assert() check.
It seems the relevant text is:
note: cast that performs the conversions of a reinterpret_cast is not
allowed in a constant expression
Is there something about our use of offsetof that means we can't depend
on the version from <stddef.h>?
--
Bruce
next prev parent reply other threads:[~2015-06-30 3:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 22:34 FreeBSD build broken following _Static_assert commit Bruce Cran
2015-06-30 2:48 ` Jens Axboe
2015-06-30 3:41 ` Bruce Cran [this message]
2015-06-30 3:46 ` Jens Axboe
2015-06-30 13:22 ` Bruce Cran
2015-06-30 13:51 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55920FE0.60901@cran.org.uk \
--to=bruce@cran.org.uk \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox