Cleanup: Fix build warning with MSVC
`IDTypeForeachCacheFunctionCallback` lists the `flags` parameter as `uint`, having these functions use `eIDTypeInfoCacheCallbackFlags` results in the following warning when building with MSVC: warning C4028: formal parameter 4 different from declaration This change resolves this warning by changing the parameter to the appropriate type.
This commit is contained in:
@@ -1981,7 +1981,7 @@ typedef struct BLOCacheStorage {
|
||||
static void blo_cache_storage_entry_register(ID *id,
|
||||
const IDCacheKey *key,
|
||||
void **UNUSED(cache_p),
|
||||
eIDTypeInfoCacheCallbackFlags UNUSED(flags),
|
||||
uint UNUSED(flags),
|
||||
void *cache_storage_v)
|
||||
{
|
||||
BLI_assert(key->id_session_uuid == id->session_uuid);
|
||||
@@ -1998,8 +1998,7 @@ static void blo_cache_storage_entry_register(ID *id,
|
||||
/** Restore a cache data entry from old ID into new one, when reading some undo memfile. */
|
||||
static void blo_cache_storage_entry_restore_in_new(ID *UNUSED(id),
|
||||
const IDCacheKey *key,
|
||||
void **cache_p,
|
||||
eIDTypeInfoCacheCallbackFlags flags,
|
||||
void **cache_p, uint flags,
|
||||
void *cache_storage_v)
|
||||
{
|
||||
BLOCacheStorage *cache_storage = cache_storage_v;
|
||||
@@ -2027,7 +2026,7 @@ static void blo_cache_storage_entry_restore_in_new(ID *UNUSED(id),
|
||||
static void blo_cache_storage_entry_clear_in_old(ID *UNUSED(id),
|
||||
const IDCacheKey *key,
|
||||
void **cache_p,
|
||||
eIDTypeInfoCacheCallbackFlags UNUSED(flags),
|
||||
uint UNUSED(flags),
|
||||
void *cache_storage_v)
|
||||
{
|
||||
BLOCacheStorage *cache_storage = cache_storage_v;
|
||||
|
||||
Reference in New Issue
Block a user