]> git.ipfire.org Git - thirdparty/suricata.git/commit
pool: fix compiler warning
authorVictor Julien <victor@inliniac.net>
Wed, 5 Apr 2017 13:13:17 +0000 (15:13 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 5 Apr 2017 13:13:17 +0000 (15:13 +0200)
commite1bf48c0ee89d16b2fc0867b4958dbad814b55ec
treebafe17254ff3d8f0ba9ce6249cf755d0237f1877
parent6227d0955f568a79a457b55c59635d97ad34007f
pool: fix compiler warning

clang-4.0 reported:

util-pool.c:242:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^           ~
util-pool.c:242:13: note: add parentheses after the '!' to evaluate the bitwise operator first
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^
              (                                   )
util-pool.c:242:13: note: add parentheses around left hand side expression to silence this warning
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^
            (          )
util-pool.c:261:13: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^           ~
util-pool.c:261:13: note: add parentheses after the '!' to evaluate the bitwise operator first
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^
              (                                   )
util-pool.c:261:13: note: add parentheses around left hand side expression to silence this warning
        if (! pb->flags & POOL_BUCKET_PREALLOCATED) {
            ^
            (          )
2 warnings generated.
src/util-pool.c