Fix some compiler warnings
Void function should actually be declared void. Not-reached switch condition should still return something.
This commit is contained in:
parent
b4b780bae6
commit
bcfe59fce2
2 changed files with 5 additions and 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ void action_if_startup(void)
|
|||
actions_register("If", setup_func, free_func, run_func);
|
||||
}
|
||||
|
||||
static inline set_bool(xmlNodePtr node,
|
||||
static inline void set_bool(xmlNodePtr node,
|
||||
const char *name,
|
||||
gboolean *on,
|
||||
gboolean *off)
|
||||
|
|
Loading…
Reference in a new issue