diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-23 11:44:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-23 11:44:54 +0300 |
commit | d3fa1bd4d5a8ec82ffa41b996d7169711ee5831d (patch) | |
tree | 4472deab335b24fa50495daeca8f38be0bd05c9a /source/blender/makesrna/intern/rna_access.c | |
parent | 073ce98231d5576c8bff2aab012ba341e058c316 (diff) |
Fix warnings reported by MSVC
Mainly it's related on a bad practice in SDL to force-define __SSE__
and __SSE2__ flags which generates quite some warnings and causes too
much noise.
There are some other warnings fixed. Should be no functional changes.
NeXyon, please check the changes in audaspace :)
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index e6178710389..d037600830a 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -6106,7 +6106,7 @@ static int rna_function_format_array_length(const char *format, int ofs, int fle } static int rna_function_parameter_parse(PointerRNA *ptr, PropertyRNA *prop, PropertyType type, - char ftype, int len, void *dest, void *src, StructRNA *srna, + char ftype, int len, void *dest, const void *src, StructRNA *srna, const char *tid, const char *fid, const char *pid) { /* ptr is always a function pointer, prop always a parameter */ @@ -6401,7 +6401,7 @@ int RNA_function_call_direct_va(bContext *C, ReportList *reports, PointerRNA *pt } case PROP_STRING: { - const char **arg = va_arg(args, const char **); + char **arg = va_arg(args, char **); err = rna_function_parameter_parse(&funcptr, parm, type, ftype, len, arg, retdata, NULL, tid, fid, pid); break; |