[cfe-dev] Implementation of stdbool.h

Timo Savola timo.savola at iki.fi
Mon Mar 3 00:20:10 PST 2008


On Sun, 2008-03-02 at 19:21 -0800, Chris Lattner wrote:

> clang.cpp:883: warning: ISO C++ forbids casting between pointer-to- 
> function and pointer-to-object
> 
> This is true, but not very helpful.  I'm not sure how to work around  
> this other than not building with -pedantic.

union {
	void *ptr;
	void (*func)(void);
};

timo





More information about the cfe-dev mailing list