This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Type-generic macros with C
- From: Jörg Leis <joerg at joergleis dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 01 May 2010 10:06:07 +0200
- Subject: Re: Type-generic macros with C
- References: <1272643259.4438.39.camel@maria> <mcrljc4onal.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <1272657309.4438.50.camel@maria> <mcr4oisod3q.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
> Thanks for the example. That code compiles fine for me, but this code
> does get a warning (note that I had to add "typeof"):
You are right about "typeof".
A related question: Is it expected that in C99-mode GCC might not be
able to compile a program because of the use of an inline function? I
defined an inline function like this:
inline int do()
{
// ...
}
> This is a class of warning will gcc will emit even for code that is
> never executed. It would be reasonable to disable that type of
> warning in code in a __builtin_choose_expr. I would encourage you to
> file a bug report as described at http://gcc.gnu.org/bugs/ . Thanks.
Thanks, I will to that.
Joerg