From: Dana Jansens Date: Sun, 11 Aug 2013 18:39:26 +0000 (-0400) Subject: Fix some compiler warnings X-Git-Tag: release-3.5.1~1 X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=commitdiff_plain;h=bcfe59fce27bb6a7aa7bc9dde2ad461dfaf68816;ds=sidebyside Fix some compiler warnings Void function should actually be declared void. Not-reached switch condition should still return something. --- diff --git a/obt/prop.c b/obt/prop.c index f7919d6..0cecccf 100644 --- a/obt/prop.c +++ b/obt/prop.c @@ -314,6 +314,7 @@ static gboolean get_text_property(Window win, Atom prop, return tprop->encoding == OBT_PROP_ATOM(UTF8_STRING); default: g_assert_not_reached(); + return FALSE; } } diff --git a/openbox/actions/if.c b/openbox/actions/if.c index 3f4c4d6..411e95c 100644 --- a/openbox/actions/if.c +++ b/openbox/actions/if.c @@ -46,10 +46,10 @@ void action_if_startup(void) 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;