Prathamesh Kulkarni prathamesh.kulkarni@linaro.org
Sat May 16 15:31:00 GMT 2015

On 16 May 2015 at 20:28, Eduardo Piombino <drakorg@gmail.com> wrote:
> Hi,
> Is there any way to get gcc to generate a warning upon some
> compile-time condition?
Try using #warning

> 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.

More information about the Gcc-help mailing list