Is there a way to disable #warning in LLVM GCC 4.2 from causing a warning in certain Targets
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 w开发者_如何学Cay to do this?
You could define NDEBUG for release builds and make the #warning conditional upon that?
精彩评论