This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Matthew Woehlke wrote:What about this (untested WAG): typeof(*(&a)) __x = a; - or - typeof(&(a[0])) __x = a; // a must be pointer or array
I've changed to using a static inline function that accepts two 'const char *' arguments and returns a 'char *' (casting internally to avoid the compiler warning), which took care of the issue.
-- Matthew Please do not quote my e-mail address unobfuscated in message bodies. -- No .sig for you! NEXT! -- Unknown
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |