-
Notifications
You must be signed in to change notification settings - Fork 31
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
Define a preprocessor flag for enabling warnings on unused ConnectionHandle #71
Conversation
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.
Overall a good change.
The way it's currently implemented, it would make CMake required, which I would like to avoid.
That should easy to fix though.
f39723d
to
c0c23c8
Compare
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 @LeonMatthesKDAB , Looks good to me now!
@phyBrackets cool, can you please incorporate my last review, so we can merge the PR? |
420c52d
to
6aa3585
Compare
@phyBrackets Thanks for the update, the code is good now 👍 It just seems we have loads of unused ConnectionHandles in our tests 🤔 It does bring up the question of how annoying this would be for end-users though. If it's just our testing that discards connection handles that often, I'm fine with leaving it ON though. |
I'd suggest enabling it by default. It usually indicates something we're doing wrong so good to know and fix them. |
@seanharmer thanks for the feedback 👍 . @phyBrackets can you please add the std::ignore calls where required, or use the ConnectionHandle if it makes sense, so CI passes. Side note: To test locally, you should be able to just run |
Hi @LeonMatthesKDAB , Thanks for the idea. I guess it would be fine with |
814644c
to
eeba48f
Compare
eeba48f
to
93705ae
Compare
Resolving #43