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 682283 - gvfs 1.13.7: E: gvfs no-return-in-nonvoid-function
gvfs 1.13.7: E: gvfs no-return-in-nonvoid-function
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: afp backend
1.13.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-20 17:42 UTC by Dominique Leuenberger
Modified: 2012-08-20 18:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2012-08-20 17:42:41 UTC
While building gvfs 1.13.7 in OBS, some compiler warnings are raised to errors (undefined behavior of code):

I: Program returns random data in a function
E: gvfs no-return-in-nonvoid-function gvfsafpconnection.c:1940

I: Program returns random data in a function
E: gvfs no-return-in-nonvoid-function gvfsafpconnection.c:1940

The function in question is:
guint32
g_vfs_afp_connection_get_max_request_size (GVfsAfpConnection *afp_connection)
{
  g_return_val_if_fail (G_VFS_IS_AFP_CONNECTION (afp_connection), 0);
}


=> so if no fail, no return
Comment 2 Dominique Leuenberger 2012-08-20 18:38:40 UTC
Confirmed.. issue is solved with this commit (built package successfully now)
Thanks for the very quick response!