[vbox-dev] [PATCH] Build fix for later versions of LLVM/i386
kevans at freebsd.org
Wed Apr 15 03:11:13 UTC 2020
This was encountered on FreeBSD. I believe, starting with LLVM 10, a
warning/error is now produced as such (reported to me; I do not have
the machine in question on hand):
exception specification in declaration does not match previous
IEM_DECL_IMPL_DEF(void, iemAImpl_add_u64,(uint64_t *puDst, uint64_t uSrc...
previous declaration is here
FNIEMAIMPLBINU64 iemAImpl_add_u64, iemAImpl_add_u64_locked;
Examination reveals that the __nothrow__ attribute is being applied to
the definition but not the declaration, which is the source of the
above error. Patch attached and available at
https://people.freebsd.org/~kevans/vbox/nothrow.diff adds __nothrow__
to the declaration as well to appease clang.
I suspect this is a de-minimus patch and licensing is not an issue,
but in case it's explicitly needed: this may be MIT licensed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 627 bytes
Desc: not available
More information about the vbox-dev