mate-desktop / mate-settings-daemon

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

cppcheck warning: Variable is assigned a value that is never used #352

Closed rbuj closed 3 years ago

rbuj commented 3 years ago
plugins/keyboard/msd-keyboard-manager.c:218:23: style: Variable 'rate' is assigned a value that is never used. [unreadVariable]
        rate          = g_settings_get_int   (settings, KEY_RATE);
                      ^
plugins/keyboard/msd-keyboard-manager.c:219:23: style: Variable 'delay' is assigned a value that is never used. [unreadVariable]
        delay         = g_settings_get_int   (settings, KEY_DELAY);
                      ^
plugins/media-keys/msd-media-keys-manager.c:603:31: style: Variable 'score' is assigned a value that is never used. [unreadVariable]
                        score = SCORE_HAS_MEDIA;
                              ^
plugins/xrandr/msd-xrandr-manager.c:815:37: style: Variable 'best_width' is assigned a value that is never used. [unreadVariable]
                        best_width  = w;
                                    ^
plugins/xrandr/msd-xrandr-manager.c:816:37: style: Variable 'best_height' is assigned a value that is never used. [unreadVariable]
                        best_height = h;
                                    ^