mate-desktop / mate-utils

GNU General Public License v2.0
39 stars 31 forks source link

baobab: Fix -Wmissing-prototypes warnings #339

Closed rbuj closed 2 years ago

rbuj commented 2 years ago

Test:

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

Warnings:

callbacks.c:120:1: error: no previous prototype for function 'on_menu_expand_activate' [-Werror,-Wmissing-prototypes]
on_menu_expand_activate (GtkMenuItem *menuitem, gpointer user_data)
^
callbacks.c:119:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
callbacks.c:126:1: error: no previous prototype for function 'on_menu_collapse_activate' [-Werror,-Wmissing-prototypes]
on_menu_collapse_activate (GtkMenuItem *menuitem, gpointer user_data)
^
callbacks.c:125:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static