From 52197ef06b84000fec2edc57eee26ce8dec4a54c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 31 May 2012 09:24:29 +0200 Subject: [PATCH] Eliminate compiler warning in stored/dircmd.c --- bacula/src/stored/dircmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5