GNOME Bugzilla – Bug 791929
Fix return value error for create_main_window_vala
Last modified: 2017-12-26 11:34:26 UTC
In file src/factory.vala, class Factory, function create_main_window_vala returns a pointer, so it must use return_val_if_fail instead of return_if_fail. factory.c:155:2: error: non-void function 'factory_real_create_main_window_vala' should return a value [-Wreturn-type] g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (gtk_app, TYPE_LATEXILA_APP)); ^ /home/lantw44/gnome/devinstall/include/glib-2.0/glib/gmessages.h:606:3: note: expanded from macro 'g_return_if_fail' return; \ ^ 1 error generated.
Created attachment 365946 [details] [review] build: fix "non-void function should return a value" for clang
Review of attachment 365946 [details] [review]: Thanks for the patch. Pushed as commit 7359e31c7184e51b019eea3f37e39228c7665bee.