-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Build: Enable warning -Woverloaded-virtual #3046
Conversation
Prerequisite for enabling -Woverloaded-virtual
@Holzhaus I didn't find a solution for suppressing the following warning during the build:
|
cc1: warning: command-line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C
"Fixed" by renaming the file 🙈 |
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.
LGTM, works fine on my machine. Waiting for CI.
@Holzhaus Wait a moment. The renamed Q_INVOCABLE in HidControllerJSProxy could cause issues. I'll check if this was really necessary. |
Reverted. Locally builds without errors. |
OSX/clang/SCons spoils all Travis CI builds. We need to get rid of it. |
Ping |
Pingping |
This option helps to detect unintended overloading of non-virtual methods from base classes. Could have detected the obsolete slots fixed in #3044.
As a prerequisite, some fixes in the controller subsystem were required. The backport to 2.3 would require some effort due to differences in the class hierarchy. I neither have the time nor motivation to sort this out.