diff options
| author | Dana Jansens <danakj@orodu.net> | 2013-08-11 14:39:26 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2013-08-11 14:43:23 -0400 |
| commit | bcfe59fce27bb6a7aa7bc9dde2ad461dfaf68816 (patch) | |
| tree | ffa5290699cfc33ce13bd58b37ea8be1ca9a6ad6 | |
| parent | b4b780bae62852d098080b33919c5e12c7e41227 (diff) | |
Fix some compiler warnings
Void function should actually be declared void. Not-reached switch
condition should still return something.
| -rw-r--r-- | obt/prop.c | 1 | ||||
| -rw-r--r-- | openbox/actions/if.c | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -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 3f4c4d64..411e95c0 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; |
