forked from enlightenment/efl
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:
parent
284276b2ec
commit
030a3448fb
|
@ -2350,12 +2350,16 @@ eina_log_timing(int domain,
|
||||||
Eina_Log_State state,
|
Eina_Log_State state,
|
||||||
const char *phase)
|
const char *phase)
|
||||||
{
|
{
|
||||||
|
#ifdef EINA_SAFETY_CHECKS
|
||||||
Eina_Log_Domain *d;
|
Eina_Log_Domain *d;
|
||||||
|
#endif
|
||||||
Eina_Log_Timing *t;
|
Eina_Log_Timing *t;
|
||||||
|
|
||||||
if (_disable_timing) return;
|
if (_disable_timing) return;
|
||||||
|
|
||||||
|
#ifdef EINA_SAFETY_CHECKS
|
||||||
d = _log_domains + domain;
|
d = _log_domains + domain;
|
||||||
|
#endif
|
||||||
t = _log_timing + domain;
|
t = _log_timing + domain;
|
||||||
#ifdef EINA_SAFETY_CHECKS
|
#ifdef EINA_SAFETY_CHECKS
|
||||||
if (EINA_UNLIKELY(d->deleted))
|
if (EINA_UNLIKELY(d->deleted))
|
||||||
|
|
Loading…
Reference in New Issue