]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation warnings with GCC 6.1
authorEric Bollengier <eric@baculasystems.com>
Thu, 14 Jul 2016 15:43:43 +0000 (17:43 +0200)
committerKern Sibbald <kern@sibbald.com>
Fri, 15 Jul 2016 09:41:12 +0000 (11:41 +0200)
The new GCC 6.1 considers that "this" is always different from NULL,
the compiler produces a warning, and the code is optimized in this
sens.

 this ? "something" : "somethingelse";

will always return "something", even if this is NULL.

This C++ trick was used with the alist

alist->size()    => if null, it returns 0
alist->empty()   => if null, it returns true


No differences found