diff options
author | raveit65 <[email protected]> | 2019-07-16 16:04:07 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-07-24 09:17:24 -0400 |
commit | 5a48f4f5a6172248fbb8462eba0d4498983ca29c (patch) | |
tree | 760c531a9f7eef9c2956ca38a2817a15486ef192 /data/icons/32x32 | |
parent | 67b0883a92607d52ece6ab7e8f8869e7f55bab29 (diff) | |
download | mate-power-manager-5a48f4f5a6172248fbb8462eba0d4498983ca29c.tar.bz2 mate-power-manager-5a48f4f5a6172248fbb8462eba0d4498983ca29c.tar.xz |
gpm-upower: fix some build warnings
```
gpm-upower.c:222:51: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gpm-upower.c:222:44: note: add parentheses around left hand side expression to silence this warning
222 | if (state == UP_DEVICE_STATE_CHARGING || !state == UP_DEVICE_STATE_DISCHARGING) {
| ^~~~~~
```
```
gpm-upower.c:222:53: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare]
222 | if (state == UP_DEVICE_STATE_CHARGING || (!state) == UP_DEVICE_STATE_DISCHARGING) {
|
```
Diffstat (limited to 'data/icons/32x32')
0 files changed, 0 insertions, 0 deletions