bareos: master 26e9f3b1
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
Paul Menzel | joergs | master | 2017-10-21 20:45 | master dee5666d | Pending |
Changeset | include/streams.h: Make integer literal unsigned Fix the Clang warning below by making the integer literal unsigned. ``` restore.c:495:40: warning: shifting a negative signed value is undefined [-Wshift-negative-value] rctx.stream = rctx.full_stream & STREAMMASK_TYPE; ^~~~~~~~~~~~~~~ ../include/streams.h:48:56: note: expanded from macro 'STREAMMASK_TYPE' #define STREAMMASK_TYPE (~((~0)<< STREAMBITS_TYPE) << STREAMBASE_TYPE) ~~~~^ ``` Found-by: clang version 4.0.1-6 (tags/RELEASE_401/final) (Ubuntu 17.10) |
||||
mod - src/include/streams.h | Diff File |