[Bf-blender-cvs] [55814cd31ff] master: Cleanup: Fix const warning in makesrna
Ray Molenkamp
noreply at git.blender.org
Mon May 27 19:34:09 CEST 2019
Commit: 55814cd31ff4f8a76f0bab18928d9a46591269f1
Author: Ray Molenkamp
Date: Mon May 27 11:34:04 2019 -0600
Branches: master
https://developer.blender.org/rB55814cd31ff4f8a76f0bab18928d9a46591269f1
Cleanup: Fix const warning in makesrna
rna_function_string was not const correct leading to
different 'const' qualifiers (C4090) warnings in MSVC.
===================================================================
M source/blender/makesrna/intern/makesrna.c
===================================================================
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 35045a3a408..7eee3661074 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -567,7 +567,7 @@ static int rna_color_quantize(PropertyRNA *prop, PropertyDefRNA *dp)
(IS_DNATYPE_FLOAT_COMPAT(dp->dnatype) == 0));
}
-static const char *rna_function_string(void *func)
+static const char *rna_function_string(const void *func)
{
return (func) ? (const char *)func : "NULL";
}
More information about the Bf-blender-cvs
mailing list