Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2019-05-27 17:44:37 +0300
committerRay Molenkamp <github@lazydodo.com>2019-05-27 17:44:37 +0300
commit270faa4e9cf79e7355ea12a1a8fa316f7f4e78d7 (patch)
tree208269c83124439fd78324eef77408d567dc4e57 /source/blender/makesdna
parent4ed6b891d5990c3e182d20f6c58b200be1a49cc6 (diff)
Cleanup: Fix warning in makesdna
passing a const pointer to BLI_ghash_insert causes warning C4090 'function': different 'const' qualifiers with MSVC
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/intern/dna_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/dna_utils.c b/source/blender/makesdna/intern/dna_utils.c
index 425deaf121f..c402b36812b 100644
--- a/source/blender/makesdna/intern/dna_utils.c
+++ b/source/blender/makesdna/intern/dna_utils.c
@@ -265,7 +265,7 @@ void DNA_alias_maps(enum eDNA_RenameDir version_dir, GHash **r_struct_map, GHash
const char **str_pair = MEM_mallocN(sizeof(char *) * 2, __func__);
str_pair[0] = BLI_ghash_lookup_default(struct_map_local, data[i][0], (void *)data[i][0]);
str_pair[1] = data[i][elem_key];
- BLI_ghash_insert(elem_map, str_pair, (void *)data[i][elem_val]);
+ BLI_ghash_insert(elem_map, (void *)str_pair, (void *)data[i][elem_val]);
}
*r_elem_map = elem_map;
}