[llvm-commits] [PATCH] fix illegal impicit cast from const void* to void*
maillist-llvm at barfooze.de
Sat Mar 3 15:16:17 PST 2012
you are right, I was misreading here, musl defines it as
extern FILE *const stderr;
so the issue still stands (although slighlty different context)
On 03/03/2012 11:56 PM, Joerg Sonnenberger wrote:
> On Sat, Mar 03, 2012 at 11:14:33PM +0100, John Spencer wrote:
>> more context:
>> void* DynamicLibrary::SearchForAddressOfSymbol(const char
>> *symbolName) calls the macro
>> 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.
> Is it really legal? stdin and friends are supposed to be passed to
> functions taking FILE * as argument, so it would force const violations
> all the time.
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
More information about the llvm-commits