当前在线人数9783
首页 - 分类讨论区 - 情感杂想 - 肚皮舞运动版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: 波音MCAS代码的bug找到了 (转载)
[同主题阅读] [版面: 肚皮舞运动] [作者:omgpop] , 2019年03月13日13:44:47
omgpop
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: omgpop (联想 fk off!), 信区: Joke
标  题: Re: 波音MCAS代码的bug找到了 (转载)
发信站: BBS 未名空间站 (Wed Mar 13 13:44:47 2019, 美东)

GCC is very flexible, and it is for experts only, which means you should
know exactly what you are doing. If you don't, you have to read the manual
and make sure you do.
-Werror=parentheses reports an error and stops the compilation. It was not
designed for spotting the '=' operator usage originally, but just used as a
trick. It is supposed that when you really mean to use the == operator, you
don't add the parentheses explicitly, but for better coding style, you
always want to add them to emphasize that you are doing an assignment. So,
you are doing an assignment but not using parentheses, you are very likely
having a typo.

【 在 Huangchong (净坛使者) 的大作中提到: 】
: 何不把这个做缺省呢  



--
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 96.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996