-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Remove compilation warning fix data type format error #394
Conversation
I found only a few warnings in previous builds but for most changes i do not see any warning. |
Compile warnings can appear using
|
Hmm, normally i use auto-tools and i don't see the warnings with |
Ok, i see the warnings now. |
I could confirm most of warnings with
But not all. It's really difficult to review for me when cflags are different with auto-tools and meson. It took me several hours to understand why you want to change parts of the code. |
This looks like at some point in the history of this code (presumably not when it was first written...) signed and unsigned integers got mixed up. Yes, this should be fixed. |
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.
This is an all-in-one for a variety of code issues, builds and installs fine here. Looking at the code I see fixes for mixing signed and unsigned integers in debug messages, a prototype warning fix, and a style fix in gpm_applet_create_popup
where we declare four variables together instead of two at the start and two later inline.
Looks like a good code cleanup to me, and doing this as an all-in-one means fewer PR's to deal with at the expensive of one more complex review, which is fine by me.
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.
Code changes are looking good to me.
m-p-m runs fine on desktop machine.
Not tested on my notebook with full battery, brightness an power-management support as i do not run 1.27 on this device.
@zhuyaliang |
Anyone else want to review this or is it ready to go? |
I tested it again on my notebook and power management and brightness function are working. |
No description provided.