From: José Fonseca Date: Wed, 21 Nov 2012 21:02:21 +0000 (+0000) Subject: retrace: Just warn in face of an unexpected non-null object. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=529cf9b67e67bdd4cad619e1e9347134375d649d retrace: Just warn in face of an unexpected non-null object. --- diff --git a/retrace/retrace_swizzle.cpp b/retrace/retrace_swizzle.cpp index b487de1..2045f6b 100644 --- a/retrace/retrace_swizzle.cpp +++ b/retrace/retrace_swizzle.cpp @@ -259,7 +259,9 @@ addObj(trace::Call &call, trace::Value &value, void *obj) { unsigned long long address = value.toUIntPtr(); if (!address) { - assert(!obj); + if (obj) { + warning(call) << "unexpected non-null object\n"; + } return; }