[llvm-commits] [PATCH] fix illegal impicit cast from const void* to void*
John Spencer
maillist-llvm at barfooze.de
Sat Mar 3 14:14:33 PST 2012
more context:
void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName)
calls the macro
EXPLICIT_SYMBOL
to return a (void*) pointer to a FILE* from a named argument which is
either stderr, stdin, or stdout.
the musl libc defines these symbols as const FILE* (which is perfectly
legal), so the implicit cast to void* fails.
adding the explicit cast to void* to the macro fixes the issue, and
since the function returns a (void*) that is not only perfectly fine,
but the only right thing to do.
On 03/03/2012 01:02 AM, John Spencer wrote:
> this caused a build error with musl libc, which defines stderr & co as
> const.
>
> --JS
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120303/a0f7cff6/attachment.html>
More information about the llvm-commits
mailing list