Giovanni Mascellani (@giomasce) commented about libs/vkd3d/cache.c:
#include <stdarg.h> #include <stdio.h>
+/* List of open caches. I expect the number to be small. */ +static struct list cache_list = LIST_INIT(cache_list); +static struct vkd3d_mutex cache_list_mutex; +static LONG cache_mutex_initialized;
+struct vkd3d_shader_cache +{
- LONG refcount;
- struct vkd3d_shader_cache_desc desc;
- struct list cache_list_entry;
- char name[1];
We use C99, you don't need the `1`.