Is there a way to disable #warning in LLVM GCC 4.2 from causing a warning in certain Targets

StackOverflow https://stackoverflow.com/questions/7070860

문제

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?

도움이 되었습니까?

해결책

You could define NDEBUG for release builds and make the #warning conditional upon that?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top