Commit: 489b5790cf182b5b25d2594499de5f5fee518dec
Author: Ray Molenkamp
Date: Wed Aug 26 19:14:17 2020 -0600
Branches: master
https://developer.blender.org/rB489b5790cf182b5b25d2594499de5f5fee518dec
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.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c
b/source/blender/blenloader/intern/readfile.c
index 60cb3d6c359..deeffcee39e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs