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]

Re: Type-generic macros with C


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]