发信人: 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.]