作者:Mx丶seven | 来源:互联网 | 2023-05-28 18:59
通常,_ = ...
匹配用于在使用其选项时使有关不匹配函数返回值的透析器警告静音-Wunmatched_returns
.正如文档所述:
-Wunmatched_returns
Include warnings for function calls which ignore a structured return value or
do not match against one of many possible return value(s).
通过将返回值与_
"不关心"变量显式匹配,您可以使用此有用的透析器选项,而无需查看您不关心的返回值的警告.
1> Steve Vinosk..:
通常,_ = ...
匹配用于在使用其选项时使有关不匹配函数返回值的透析器警告静音-Wunmatched_returns
.正如文档所述:
-Wunmatched_returns
Include warnings for function calls which ignore a structured return value or
do not match against one of many possible return value(s).
通过将返回值与_
"不关心"变量显式匹配,您可以使用此有用的透析器选项,而无需查看您不关心的返回值的警告.