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?

Was it helpful?

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
scroll top