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);
|
return tprop->encoding == OBT_PROP_ATOM(UTF8_STRING);
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,10 @@ void action_if_startup(void)
|
||||||
actions_register("If", setup_func, free_func, run_func);
|
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,
|
const char *name,
|
||||||
gboolean *on,
|
gboolean *on,
|
||||||
gboolean *off)
|
gboolean *off)
|
||||||
{
|
{
|
||||||
xmlNodePtr n;
|
xmlNodePtr n;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue