glsl: Add missing cache_destroy stub function.
authorVinson Lee <vlee@freedesktop.org>
Fri, 7 Oct 2016 20:57:44 +0000 (13:57 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 10 Oct 2016 18:17:31 +0000 (11:17 -0700)
  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 <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/cache.h

index 78df32b6c54e81fdf9a838e4b0297a64133524d1..d804169c656126706b1bfda9fb7c21ba2bfc6db5 100644 (file)
@@ -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)