After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728037 - Fix build with -Wreturn-type
Fix build with -Wreturn-type
Status: RESOLVED DUPLICATE of bug 727530
Product: libgweather
Classification: Core
Component: general
unspecified
Other FreeBSD
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-11 12:53 UTC by Koop Mast (kwm)
Modified: 2014-04-23 08:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix build by not returning value. (923 bytes, patch)
2014-04-11 12:54 UTC, Koop Mast (kwm)
none Details | Review

Description Koop Mast (kwm) 2014-04-11 12:53:53 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.
Comment 1 Koop Mast (kwm) 2014-04-11 12:54:56 UTC
Created attachment 274092 [details] [review]
Fix build by not returning value.
Comment 2 Koop Mast (kwm) 2014-04-23 08:29:09 UTC

*** This bug has been marked as a duplicate of bug 727530 ***