diff options
author | Julian Eisel <julian@blender.org> | 2021-09-23 16:04:00 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-09-23 16:04:41 +0300 |
commit | aa2493e2e7e6be645d352f53d30a1e018b8a677a (patch) | |
tree | 44656c3c497e0b655def193b99696917697ab72e /source/blender/makesrna/intern/rna_asset.c | |
parent | 9b12b23d0bace4056ed14ff3e3e8415eb4ff75af (diff) |
Fix unused variable warning in release builds
The variable is only used in debug builds.
Diffstat (limited to 'source/blender/makesrna/intern/rna_asset.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_asset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_asset.c b/source/blender/makesrna/intern/rna_asset.c index 5df32150cc4..80824df1bc8 100644 --- a/source/blender/makesrna/intern/rna_asset.c +++ b/source/blender/makesrna/intern/rna_asset.c @@ -76,6 +76,7 @@ static int rna_AssetTag_editable(PointerRNA *ptr, const char **r_info) if (owner_id && owner_id->asset_data) { BLI_assert_msg(BLI_findindex(&owner_id->asset_data->tags, asset_tag) != -1, "The owner of the asset tag pointer is not the asset ID containing the tag"); + UNUSED_VARS_NDEBUG(asset_tag); } return rna_AssetMetaData_editable_from_owner_id(ptr->owner_id, owner_id->asset_data, r_info) ? |