Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: bits - macros to simplify expressions when using -Wstrict-bool
To be strict-bool compliant, your expressions need to be a bit verbose, these might simplify things. There are presently over 400 instances matching HAS_NO_BITS(), and nearly 1300 instances matching HAS_ANY_BITS(), so it's a very common pattern. Signed-off-by: Phil Carmody <phil@dovecot.fi>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters