You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this comes from src/libxlibtrace-print.h, where the parameter __REALTYPE__(safetype) const * value is used in several places. If __REALTYPE__(safetype) is not a pointer type, this can result in both east-const and west-const being specified, resulting in a duplicate specifier.
Unfortunately removing const from the parameter seems to cause other problems. I suspect this is due to pointer types, where the different positions for const would cause one to be applied to the pointer itself, rather than the pointed to type.
I re-tested this. It seems the code builds fine on Ubnutu 20.04 using GCC, but fails with the above error using Clang. During my previous test, I had an environment variable set that caused the build to use Clang.
export CC=clang # Was set in my environment, leading to error
When building on Ubuntu 20.04, with #2 and #3 applied, build fails with:
I believe this comes from
src/libxlibtrace-print.h
, where the parameter__REALTYPE__(safetype) const * value
is used in several places. If__REALTYPE__(safetype)
is not a pointer type, this can result in both east-const and west-const being specified, resulting in a duplicate specifier.Unfortunately removing
const
from the parameter seems to cause other problems. I suspect this is due to pointer types, where the different positions forconst
would cause one to be applied to the pointer itself, rather than the pointed to type.This is distinct from the change in #3.
The text was updated successfully, but these errors were encountered: