]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate compiler warning in stored/dircmd.c
authorKern Sibbald <kern@sibbald.com>
Thu, 31 May 2012 07:24:29 +0000 (09:24 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:40 +0000 (14:50 +0200)
bacula/src/stored/dircmd.c

index 0d86a3fca229d98cbf55b331dd1ba3b4df752b61..f3eed0789bd04ad1c6cb32ae041f4aeb1c383244 100644 (file)
@@ -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;
 }