Re: -Werror macro

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

 



Bruno Moreira Guedes:

> How could I know if -Werror is set?? Is there some macro set when it's
> used or not??

The preprocessor does not define builtin macros for its command line 
options.

You could, perhaps, use a shell construct to check for the presence
of -Werror on the command line, then set the compiler options 
accordingly.

I had been planning such a feature in ctpp (shamless OT plug, I know), 
but there hasn't been any demand so far.

HTH

Ctalk Home Page: http://www.ctalklang.org

[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