]> git.sur5r.net Git - bacula/bacula/commit
Fix optimization error with GCC 6.1
authorEric Bollengier <eric@baculasystems.com>
Thu, 14 Jul 2016 18:37:31 +0000 (20:37 +0200)
committerKern Sibbald <kern@sibbald.com>
Fri, 15 Jul 2016 09:41:44 +0000 (11:41 +0200)
commit164b87a138cdad99df7c05040c99bc6e316c02c5
tree8be7a891f430c926d2a13c772dd6dc1d930b47c5
parent9ac32bb2ce9972ff30e0f9dcf2ed76989cdac4f5
Fix optimization error with GCC 6.1

With new gcc/g++ version, the memset() call in SMARTALLOC::new()
is stripped out automatically with the -O2 flag.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71885

The patch modifies slightly the code to avoid this optimization.
bacula/src/lib/smartall.h