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

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to