Fix some compiler warnings Void function should actually be declared void. Not-reached switch condition should still return something.
Dana Jansens danakj@orodu.net
2 files changed,
5 insertions(+),
4 deletions(-)
M
obt/prop.c
→
obt/prop.c
@@ -314,6 +314,7 @@ case OBT_PROP_TEXT_UTF8_STRING:
return tprop->encoding == OBT_PROP_ATOM(UTF8_STRING); default: g_assert_not_reached(); + return FALSE; } }
M
openbox/actions/if.c
→
openbox/actions/if.c
@@ -46,10 +46,10 @@ {
actions_register("If", setup_func, free_func, run_func); } -static inline set_bool(xmlNodePtr node, - const char *name, - gboolean *on, - gboolean *off) +static inline void set_bool(xmlNodePtr node, + const char *name, + gboolean *on, + gboolean *off) { xmlNodePtr n;