From b977e11ea6aac2e0705f83466f1fcd34510875f2 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 21 May 2012 14:48:32 +0000 Subject: [PATCH] Eo: Made an hot-path check compile out when not in debug mode. SVN revision: 71286 --- legacy/eobj/lib/eo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/eobj/lib/eo.c b/legacy/eobj/lib/eo.c index e79b95375b..966f9b2ff8 100644 --- a/legacy/eobj/lib/eo.c +++ b/legacy/eobj/lib/eo.c @@ -1384,10 +1384,12 @@ eo_data_get(const Eo *obj, const Eo_Class *klass) ret = _eo_data_get(obj, klass); +#ifndef NDEBUG if (!ret && (klass->desc->data_size == 0)) { ERR("Tried getting data of class '%s', but it has none..", klass->desc->name); } +#endif return ret; }