-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
许多编译警报 #546
Comments
编译打开-pedantic了么 |
打开 -pedantic 报了更多的编译警报,比如这种:
|
-pedantic是不用加的,这是以更严格的标准来检查代码。我是确认下没加。这儿的warning看起来确实是正确的warning,但在C++0x下没报,我们会看一下c++14和c++1y下的编译问题。 |
@choleraehyq 你们的g++自己改过么,开了你的option,试了g++4.8和g++7,只有在显式delete有non-virtual-dtor的基类指针的时候,才会报上面的warning,而brpc里面没有显式的delete你帖出来的StreamCreator和StreamUserData的基类指针,所以在我本地就没有报warning |
@zyearn
|
这个问题有解决办法了吗?Centos-7.4.1708 g++4.8 std=c++11 编译遇到同样的问题。 |
This issue has been automatically marked as stale because it's inactive for a long time. It will be closed if no further activity occurs, reopen if you have further ideas. Thank you for your contributions! 由于很久没有活跃,此Issue已被自动标记为过期。之后几天仍无变化的话将会被关闭,若你有新想法则可重新打开。感谢你的贡献! |
Describe the bug (描述bug)
A clear and concise description of what the bug is. 请准确描述bug是什么.
许多编译警报
To Reproduce (复现方法)
Please describe the steps to reproduce the behavior. 请描述复现问题的步骤.
编译 grpc example,使用了公司内部编译工具,没法描述步骤,但是警报很清楚,跟编译步骤应该没啥关系
Expected behavior (期望行为)
A clear and concise description of what you expected to happen. 请准确描述你期望发生什么.
编译通过
Versions (各种版本)
OS: 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
Compiler: g++ 4.9.2, -std=c++1y -Wall -Werror -Wextra
brpc: 2d781de
protobuf: 3.6.0
Additional context (更多上下文)
Add any other context or screenshots here. 这里添加更多上下文或截图.
The text was updated successfully, but these errors were encountered: