Re: Type-generic macros with C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux