GNOME Bugzilla – Bug 728037
Fix build with -Wreturn-type
Last modified: 2014-04-23 08:29:09 UTC
Void function shouldn't try to return a value. gweather-location.c:767:5: error: void function 'gweather_location_detect_nearest_city' should not return a value [-Wreturn-type] g_return_val_if_fail (loc == NULL || loc->level < GWEATHER_LOCATION_CITY, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kwm/jhbuild/install/include/glib-2.0/glib/gmessages.h:382:3: note: expanded from macro 'g_return_val_if_fail' return (val); \ ^ ~~~~~ 1 error generated.
Created attachment 274092 [details] [review] Fix build by not returning value.
*** This bug has been marked as a duplicate of bug 727530 ***