已关闭
[Bug]: Ignore -Wshadow when building static_core with gcc #11817
dsilakov创建于  6月9日关闭于  6月10日
dsilakov
dsilakov
6月9日 创建

感谢对OpenHarmony社区的支持与关注,欢迎反馈缺陷。

发生了什么问题?

Unlike clang, gcc always claims on shadowed variables inside lambdas
even if they are not captured by that sepcific lambda.

However this is harmless and we already have such cases in the tests,
so some files fail to be compile by g++ while clang++ build them fine
even with -Werror=shadow

So let's disable shadow detection by gcc completely

期望行为是什么?

Ignore -Wshadow when building static_core with gcc

如何复现该缺陷

Ignore -Wshadow when building static_core with gcc

其他补充信息

版本或分支信息

likedislike
openharmony_ci
openharmony_ci成员
6月9日 评论:

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@weng-changcheng](https://gitcode.com/weng-changcheng) [@godmiaozi](https://gitcode.com/godmiaozi) [@liyiming13](https://gitcode.com/liyiming13) [@lijin1039](https://gitcode.com/lijin1039) [@Prof](https://gitcode.com/Prof) [@dingding5](https://gitcode.com/dingding5) [@vpukhov](https://gitcode.com/vpukhov) [@v-cherkashin](https://gitcode.com/v-cherkashin) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。


Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
6月9日 添加了label:waiting_for_assign
openharmony_ciopenharmony_ci成员
6月10日 关闭了 issue
openharmony_ciopenharmony_ci成员
6月10日 issue状态由 待办的 改变为 已完成