Fix unreferenced variable warning (issue #2090)

This commit is contained in:
Marshall Greenblatt 2017-02-14 10:15:12 -08:00
parent 54424d0edc
commit 43001c0a94
1 changed files with 2 additions and 0 deletions

View File

@ -147,9 +147,11 @@ StructName* CefCToCppScoped<ClassName, BaseName, StructName>::UnwrapOwn(
StructName* orig_struct = wrapperStruct->struct_; StructName* orig_struct = wrapperStruct->struct_;
#if DCHECK_IS_ON()
// We should own the object currently. // We should own the object currently.
cef_base_scoped_t* base = reinterpret_cast<cef_base_scoped_t*>(orig_struct); cef_base_scoped_t* base = reinterpret_cast<cef_base_scoped_t*>(orig_struct);
DCHECK(base && base->del); DCHECK(base && base->del);
#endif
// Don't delete the original object when the wrapper is deleted. // Don't delete the original object when the wrapper is deleted.
wrapperStruct->struct_ = NULL; wrapperStruct->struct_ = NULL;