GNOME Bugzilla – Bug 699424
"static CacheEntry * add_cache_entry" has no return value
Last modified: 2013-05-01 22:36:00 UTC
While building gvfs 1.17.0 in OBS (open build service), the build root policy check raises the compiler warning [ 330s] gvfsbackendmtp.c:160:1: warning: no return statement in function returning non-void [-Wreturn-type to an error (for known issues by using random return data) The function in question is: ### static CacheEntry * add_cache_entry (GVfsBackendMtp *backend, char *path, uint32_t storage, uint32_t id) { CacheEntry *entry = g_new0 (CacheEntry, 1); entry->storage = storage; entry->id = id; DEBUG ("(II) add_cache_entry: %s: %u, %u", path, entry->storage, entry->id); g_hash_table_replace (backend->file_cache, path, entry); } ###
commit 238a92496f5ab165b52f90d414379525cb262ee1 Author: Philip Langdale <philipl@overt.org> Date: Wed May 1 15:33:02 2013 -0700 MTP: Fix compilation warning. The add_cache_entry helper's signature said it returned the CacheEntry but it doesn't. https://bugzilla.gnome.org/show_bug.cgi?id=699424