]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix compilation warning in storage manager to get rid of 'initialzer lists' warning
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 6 Aug 2021 16:35:46 +0000 (18:35 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
commit94a323373c3650b3b8dc87fe75436e6aeacb4572
treec3b3b4851c88bf6f11c4152f9bc2dbccec6e280e
parenta513466081da4d96685d69757906763256c66788
Fix compilation warning in storage manager to get rid of 'initialzer lists' warning

Description:
when using:
mutex = PTHREAD_MUTEX_INITIALIZER;
instead of:
pthread_mutex_init(&mutex, NULL);
There could be warning on some environments:
store_mngr.c:31:10: warning: extended initializer lists only available
with -std=c++11 or -std=gnu++11 [enabled by default]
    mutex = PTHREAD_MUTEX_INITIALIZER;

To get rid of it, simply use the init/destroy mutex helpers.
bacula/src/dird/store_mngr.c