From: Kern Sibbald Date: Thu, 31 May 2012 07:24:29 +0000 (+0200) Subject: Eliminate compiler warning in stored/dircmd.c X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e664dfeb53ca4400a859029448845ea48ac57d3f;p=bacula%2Fbacula Eliminate compiler warning in stored/dircmd.c --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 0d86a3fca2..f3eed0789b 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -264,7 +264,7 @@ static bool die_cmd(JCR *jcr) { #ifdef DEVELOPER JCR *djcr = NULL; - int a; + int a, b; BSOCK *dir = jcr->dir_bsock; pthread_mutex_t m=PTHREAD_MUTEX_INITIALIZER; @@ -276,6 +276,8 @@ static bool die_cmd(JCR *jcr) Pmsg1(000, "I have been requested to die ... (%s)\n", dir->msg); a = djcr->JobId; /* ref NULL pointer */ + b = a; /* Keep compiler quiet */ + a = b; #endif return 0; }