diff options
author | Dalai Felinto <dalai@blender.org> | 2021-04-15 18:50:58 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-04-15 18:50:58 +0300 |
commit | 32d3b07b030bd6a9a5c36bc6091f519952297427 (patch) | |
tree | 646157461e7cbbb2fe40c9fb460f95c63bb72c9f /source/blender/makesrna | |
parent | 5425388e6075ad72914324069fb3c6a1eec8677c (diff) |
RNA: Silence warning when building without audaspace
`make lite` does not use audaspace, so some files will pollute the console with
tons of warnings about audio values not defined.
Reviewed By: nexyon, campbellbarton
Differential Revision: https://developer.blender.org/D10981
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index a20ce2d05d0..26887b51f81 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -779,7 +779,7 @@ static const EnumPropertyItem *rna_userdef_audio_device_itemf(bContext *UNUSED(C RNA_enum_item_add(&item, &totitem, &new_item); } -# ifndef NDEBUG +# if !defined(NDEBUG) || !defined(WITH_AUDASPACE) if (i == 0) { EnumPropertyItem new_item = {i, "SOUND_NONE", 0, "No Sound", ""}; RNA_enum_item_add(&item, &totitem, &new_item); |