mate-desktop / mate-power-manager

Power management tool for the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
59 stars 51 forks source link

Fix -Wmissing-prototypes warnings #381

Closed rbuj closed 1 year ago

rbuj commented 2 years ago

Test:

 CFLAGS="-Werror=missing-prototypes" ./autogen.sh --prefix=/usr && make && sudo make install

Warnings

mate-power-manager.make.log:brightness-applet.c:910:1: warning: no previous prototype for function 'gpm_brightness_applet_dbus_connect' [-Wmissing-prototypes]
mate-power-manager.make.log:brightness-applet.c:954:1: warning: no previous prototype for function 'gpm_brightness_applet_dbus_disconnect' [-Wmissing-prototypes]
mate-power-manager.make.log:brightness-applet.c:982:1: warning: no previous prototype for function 'gpm_brightness_applet_name_vanished_cb' [-Wmissing-prototypes]
mate-power-manager.make.log:inhibit-applet.c:362:1: warning: no previous prototype for function 'gpm_inhibit_applet_dbus_connect' [-Wmissing-prototypes]
mate-power-manager.make.log:inhibit-applet.c:399:1: warning: no previous prototype for function 'gpm_inhibit_applet_dbus_disconnect' [-Wmissing-prototypes]
mate-power-manager.make.log:inhibit-applet.c:429:1: warning: no previous prototype for function 'gpm_inhibit_applet_name_vanished_cb' [-Wmissing-prototypes]