-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix some clang/gcc warnings found integrating qtpromise #39
fix some clang/gcc warnings found integrating qtpromise #39
Conversation
ssproessig
commented
Oct 21, 2020
…estructor-override]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ssproessig! It would be a good idea to add these warnings to the project compile options, so we will not forget about them next time.
...regarding the compiler options: in our projects we usually use the following switches -besides
Shall I add any others besides |
Let's focus on GCC since the CI doesn't build with Clang (yet). While I'm not sure which ones are available since GCC 4.9, I would try to introduce only these additional flags:
I can't find a GCC equivalent for About other suggested flags: -Wformat-security // part of -Wformat=2
-Wnon-virtual-dtor // can't find docs about this one
-Wstrict-overflow // part of -Wall
-Wswitch // part of -Wall |
4c9ebe0
to
538146a
Compare
Feel free to drop the |
as always - "it's only a small change" hangs in CI/CD - trying to fix it |
I'll have to get a GCC 4.9 first to fix it locally. I'll have a look at it in the evening. |
8f8ebbd
to
cab8038
Compare
…ast (findings in moc generated code)
cab8038
to
b549f38
Compare
I just disabled inspired by: https://bugreports.qt.io/browse/QTBUG-82978
|
I also disabled |
I was about to suggest to not include |
Thanks @ssproessig |