Fix "non-void function should return a value" for clang

https://bugzilla.gnome.org/show_bug.cgi?id=741081