_Static_warning?

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

 



Hi,

Is there any way to get gcc to generate a warning upon some
compile-time condition?
I'd be aiming at something like _Static_assert, but raising a warning
instead of an error.

Nowadays, to achieve something similar, I have to run 2 builds, one
with the assert enabled just to get notified of such conditions, and
then a another one, without the asserts, to actually compile them.

Thank you,
Eduardo.




[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