编译时的警告如下:

warning: suggest parentheses around assignment used as truth value

 

源代码如下:

warning: suggest parentheses around assignment used as truth value

 

修改为:

warning: suggest parentheses around assignment used as truth value

 

 

这样警告就可以消除。

 

参考:http://stackoverflow.com/questions/5476759/compiler-warning-suggest-parentheses-around-assignment-used-as-truth-value

 

warning: suggest parentheses around assignment used as truth value

 warning: suggest parentheses around assignment used as truth value

 

 

相关文章:

  • 2021-09-12
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案