From: Tom Hacohen Date: Wed, 25 Sep 2013 16:48:42 +0000 (+0100) Subject: Eo: Fixed unused warnings when have EO_ID. X-Git-Tag: submit/devel/efl/20131029.075644~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=298527191e82194faf16024f39ca1bd53931731f;p=platform%2Fupstream%2Fefl.git Eo: Fixed unused warnings when have EO_ID. --- diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 303a65c..eed7a8c 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -898,7 +898,7 @@ eo_class_new(const Eo_Class_Description *desc, const Eo *parent_id, ...) } #ifdef HAVE_EO_ID - hndl = NULL; + (void) hndl; klass = calloc(1, _eo_class_sz + extn_sz + mro_sz + mixins_sz); #else hndl = calloc(1, _eo_handle_sz + _eo_class_sz + extn_sz + mro_sz + mixins_sz); @@ -1097,7 +1097,7 @@ eo_add_internal(const char *file, int line, const Eo *klass_id, Eo *parent_id, . else { #ifdef HAVE_EO_ID - hndl = NULL; + (void) hndl; obj = calloc(1, klass->obj_size); #else hndl = calloc(1, klass->obj_size);