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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-07 00:39:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-07 02:39:22 +0400
commitb53f310be8c1faf53e51b875eb3ca790c5efeee2 (patch)
tree9cc602d2ad9d714b2bf1a568fc0e2b77d0bc66fa /source
parentcfa49976c411e49b3274abe77f2323c257aeba56 (diff)
Quiet warning
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_screen.h2
-rw-r--r--source/blender/makesrna/intern/rna_ui.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h
index 2aaf9198af0..4cbd7e966f2 100644
--- a/source/blender/blenkernel/BKE_screen.h
+++ b/source/blender/blenkernel/BKE_screen.h
@@ -242,7 +242,7 @@ typedef struct MenuType {
char idname[BKE_ST_MAXNAME]; /* unique name */
char label[BKE_ST_MAXNAME]; /* for button text */
char translation_context[BKE_ST_MAXNAME];
- char *description;
+ const char *description;
/* verify if the menu should draw or not */
int (*poll)(const struct bContext *, struct MenuType *);
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c
index c812fa0f167..6559c27c503 100644
--- a/source/blender/makesrna/intern/rna_ui.c
+++ b/source/blender/makesrna/intern/rna_ui.c
@@ -686,10 +686,11 @@ static StructRNA *rna_Menu_register(Main *bmain, ReportList *reports, void *data
int have_function[2];
size_t over_alloc = 0; /* warning, if this becomes a bess, we better do another alloc */
size_t description_size = 0;
- char _menu_descr[RNA_DYN_DESCR_MAX] = {0};
+ char _menu_descr[RNA_DYN_DESCR_MAX];
/* setup dummy menu & menu type to store static properties in */
dummymenu.type = &dummymt;
+ _menu_descr[0] = '\0';
dummymenu.type->description = _menu_descr;
RNA_pointer_create(NULL, &RNA_Menu, &dummymenu, &dummymtr);