From: Vinson Lee Date: Fri, 7 Oct 2016 20:57:44 +0000 (-0700) Subject: glsl: Add missing cache_destroy stub function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a898ec28bf1bd1bd302c881af13a02b557acb07;p=mesa.git glsl: Add missing cache_destroy stub function. CC glsl/tests/cache_test.o glsl/tests/cache_test.c: In function ‘test_cache_create’: glsl/tests/cache_test.c:160:4: error: implicit declaration of function ‘cache_destroy’ [-Werror=implicit-function-declaration] cache_destroy(cache); ^ Fixes: 87ab26b2ab35 ("glsl: Add initial functions to implement an on-disk cache") Signed-off-by: Vinson Lee Reviewed-by: Timothy Arceri --- diff --git a/src/compiler/glsl/cache.h b/src/compiler/glsl/cache.h index 78df32b6c54..d804169c656 100644 --- a/src/compiler/glsl/cache.h +++ b/src/compiler/glsl/cache.h @@ -138,6 +138,11 @@ cache_create(void) return NULL; } +static inline void +cache_destroy(struct program_cache *cache) { + return; +} + static inline void cache_put(struct program_cache *cache, cache_key key, const void *data, size_t size)