开发者

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

开发者 https://www.devze.com 2023-03-28 19:53 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消