@@ -88,7 +88,7 @@ void git_sortedcache_free(git_sortedcache *sc);
8888void git_sortedcache_incref (git_sortedcache * sc );
8989
9090/* Get the pathname associated with this cache at creation time */
91- GIT_WARN_UNUSED_RESULT const char * git_sortedcache_path (git_sortedcache * sc );
91+ const char * git_sortedcache_path (git_sortedcache * sc );
9292
9393/*
9494 * CACHE WRITE FUNCTIONS
@@ -145,7 +145,7 @@ GIT_WARN_UNUSED_RESULT int git_sortedcache_upsert(
145145/* Removes entry at pos from cache
146146 * You should already be holding the write lock when you call this.
147147 */
148- GIT_WARN_UNUSED_RESULT int git_sortedcache_remove (git_sortedcache * sc , size_t pos );
148+ int git_sortedcache_remove (git_sortedcache * sc , size_t pos );
149149
150150/*
151151 * CACHE READ FUNCTIONS
@@ -163,23 +163,20 @@ GIT_WARN_UNUSED_RESULT int git_sortedcache_rlock(git_sortedcache *sc);
163163void git_sortedcache_runlock (git_sortedcache * sc );
164164
165165/* Lookup item by key - returns NULL if not found */
166- GIT_WARN_UNUSED_RESULT void * git_sortedcache_lookup (
167- const git_sortedcache * sc , const char * key );
166+ void * git_sortedcache_lookup (const git_sortedcache * sc , const char * key );
168167
169168/* Get how many items are in the cache
170169 *
171170 * You can call this function without holding a lock, but be aware
172171 * that it may change before you use it.
173172 */
174- GIT_WARN_UNUSED_RESULT size_t git_sortedcache_entrycount (
175- const git_sortedcache * sc );
173+ size_t git_sortedcache_entrycount (const git_sortedcache * sc );
176174
177175/* Lookup item by index - returns NULL if out of range */
178- GIT_WARN_UNUSED_RESULT void * git_sortedcache_entry (
179- git_sortedcache * sc , size_t pos );
176+ void * git_sortedcache_entry (git_sortedcache * sc , size_t pos );
180177
181178/* Lookup index of item by key - returns GIT_ENOTFOUND if not found */
182- GIT_WARN_UNUSED_RESULT int git_sortedcache_lookup_index (
179+ int git_sortedcache_lookup_index (
183180 size_t * out , git_sortedcache * sc , const char * key );
184181
185182#endif
0 commit comments