Quiet warning

This commit is contained in:
Campbell Barton
2014-02-07 07:39:44 +11:00
parent cfa49976c4
commit b53f310be8
2 changed files with 3 additions and 2 deletions

View File

@@ -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 *);

View File

@@ -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);