mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
43 stars 48 forks source link

mouse: Remove warnings about absolute value function for long #315

Closed rbuj closed 4 years ago

rbuj commented 4 years ago
< msd-mouse-manager.c:1363:35: warning: absolute value function ‘abs’ given an argument of type ‘glong’ {aka ‘long int’} but has parameter of type ‘int’ which may cause truncation of value [-Wabsolute-value]
<  1363 |                         ptr[0] = -abs(ptr[0]);
<       |                                   ^~~
< msd-mouse-manager.c:1364:35: warning: absolute value function ‘abs’ given an argument of type ‘glong’ {aka ‘long int’} but has parameter of type ‘int’ which may cause truncation of value [-Wabsolute-value]
<  1364 |                         ptr[1] = -abs(ptr[1]);
<       |                                   ^~~
< msd-mouse-manager.c:1366:34: warning: absolute value function ‘abs’ given an argument of type ‘glong’ {aka ‘long int’} but has parameter of type ‘int’ which may cause truncation of value [-Wabsolute-value]
<  1366 |                         ptr[0] = abs(ptr[0]);
<       |                                  ^~~
< msd-mouse-manager.c:1367:34: warning: absolute value function ‘abs’ given an argument of type ‘glong’ {aka ‘long int’} but has parameter of type ‘int’ which may cause truncation of value [-Wabsolute-value]
<  1367 |                         ptr[1] = abs(ptr[1]);
<       |                                  ^~~