Topic : Generating a compiler warning

Forum : 8051

Original Post
Post Information Post
November 26, 2008 - 8:41pm

I've used other compilers in the past that supported a #warning "String" directive. I can't seem to find a similiar feature in the Raisonance compiler. Is there such a feature? I like to use this to let me know I have certain conditional compiler switches off (e.g. Watchdog enabled) before releasing code.

The #error "String" works but stops the compiler.

Post Information Post
December 2, 2008 - 3:26pm


I could not find this functionality and I think it does not exist.

Here is what I would use if I wanted an equivalent solution
#pragma WA(C124) // it tells the compiler to generate a warning for unknown pragma
#pragma toto //unknown pragma to have a warning that does not touch the code
#pragma NOWA(C124) //it tells the compiler to not generate a warning for unknown pragma