[dovecot/core] 5ea4e2: lib: bits - macros to simplify expressions when us...

GitHub noreply at github.com
Sun May 20 12:30:06 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 5ea4e2c64a18abe7abf19041625df4eaa2db7dc5
      https://github.com/dovecot/core/commit/5ea4e2c64a18abe7abf19041625df4eaa2db7dc5
  Author: Phil Carmody <phil at dovecot.fi>
  Date:   2018-05-20 (Sun, 20 May 2018)

  Changed paths:
    M src/lib/bits.h
    M src/lib/test-bits.c

  Log Message:
  -----------
  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 at dovecot.fi>



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list