diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-13 21:10:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-13 21:11:20 +0300 |
commit | b09563ca8c42f46233bd104e30812e4fc7322ba3 (patch) | |
tree | 49d304ba915aac88b69ab367f98eb71af36f2662 /source/blender/makesrna/intern/makesrna.c | |
parent | ef80914c99fb94a4bc7e02a1f808eb0162577fec (diff) |
Cleanup: fixes for building with recent clang
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index f0a0f470ccf..92a509d4d56 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -1628,7 +1628,7 @@ static void rna_def_property_funcs_header(FILE *f, StructRNA *srna, PropertyDefR EnumPropertyRNA *eprop = (EnumPropertyRNA *)prop; int i; - if (eprop->item) { + if (eprop->item && eprop->totitem) { fprintf(f, "enum {\n"); for (i = 0; i < eprop->totitem; i++) |