Is there a way to disable #warning in LLVM GCC 4.2 from causing a warning in certain Targets
Question
I'm looking for a compliler flag to disable the GCC #warning
directive in Debug targets but not release targets. Does anyone know of a way to do this?
Solution
You could define NDEBUG for release builds and make the #warning conditional upon that?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow