eina: fix warning if EINA_SAFETY_CHECKS is disabled

Summary:
Putting local variable "d" under preprocessor flag "EINA_SAFETY_CHECKS" to avoid below warning, if "EINA_SAFETY_CHECKS" is disabled.
        1. local variable "d" is assigned but not used.
        2. If warning 1 is resolved then variable "d" will be unused.

Reviewers: raster, cedric

Reviewed By: cedric

Subscribers: jpeg, rajeshps

Differential Revision: https://phab.enlightenment.org/D5321

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Prince Kumar Dubey 2017-10-16 13:36:09 -07:00 committed by Cedric BAIL
parent 284276b2ec
commit 030a3448fb
1 changed files with 4 additions and 0 deletions

View File

@ -2350,12 +2350,16 @@ eina_log_timing(int domain,
Eina_Log_State state,
const char *phase)
{
#ifdef EINA_SAFETY_CHECKS
Eina_Log_Domain *d;
#endif
Eina_Log_Timing *t;
if (_disable_timing) return;
#ifdef EINA_SAFETY_CHECKS
d = _log_domains + domain;
#endif
t = _log_timing + domain;
#ifdef EINA_SAFETY_CHECKS
if (EINA_UNLIKELY(d->deleted))