-
Notifications
You must be signed in to change notification settings - Fork 102
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
Improve compile warnings #458
base: main
Are you sure you want to change the base?
Conversation
f442541
to
e90e3e2
Compare
Actually, the compiler warnings situation is not nice. We're currently using
xdg-desktop-portal-gtk is a security boundary, and we should be more careful with the code we're shipping. |
My personal opinion is |
I agree about |
Just to clarify, |
If we can, we should rejig the code to avoid declaring unused arguments and variables; if we can't, we can use G_GNUC_UNUSED to eliminate the warning.
Missing `void`. This isn't C++.
The title of the access dialog should not be used as the format string, otherwise we open ourselves to specially crafted payloads making a mess.
Ensure we don't accidentally forget a state.
Make it clear what we're operating on.
Outside of Meson's default warnings, we really need to step up our coverage.
e90e3e2
to
e36d27d
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.
LGTM
If we can, we should rejig the code to avoid declaring unused arguments and variables; if we can't, we can use G_GNUC_UNUSED to eliminate the warning.