[riot-commits] [RIOT-OS/RIOT] 601c30: cpu/kinetis_common: Cast device index enums to uns...

Oleg Hahm oleg at hobbykeller.org
Tue Jul 21 09:55:17 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 601c3002c32135601150c9a89487c41dac3aaea2
      https://github.com/RIOT-OS/RIOT/commit/601c3002c32135601150c9a89487c41dac3aaea2
  Author: Joakim Gebart <joakim.gebart at eistec.se>
  Date:   2015-07-21 (Tue, 21 Jul 2015)

  Changed paths:
    M cpu/kinetis_common/gpio.c
    M cpu/kinetis_common/i2c.c
    M cpu/kinetis_common/spi.c

  Log Message:
  -----------
  cpu/kinetis_common: Cast device index enums to unsigned int before comparing for out of range values

Suppresses false warning in Clang:

    warning: comparison of constant 42 with expression of type 'xxx_t'
    is always false [-Wtautological-constant-out-of-range-compare]

See:
 - https://llvm.org/bugs/show_bug.cgi?id=16154
 - https://llvm.org/bugs/show_bug.cgi?id=22062


  Commit: 470304089ce0fd5901bc78f168ea124deae2fa1f
      https://github.com/RIOT-OS/RIOT/commit/470304089ce0fd5901bc78f168ea124deae2fa1f
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2015-07-21 (Tue, 21 Jul 2015)

  Changed paths:
    M cpu/kinetis_common/gpio.c
    M cpu/kinetis_common/i2c.c
    M cpu/kinetis_common/spi.c

  Log Message:
  -----------
  Merge pull request #3467 from gebart/pr/kinetis-clang-enum-tautological-compare-fix

cpu/kinetis_common: Cast device index enums to unsigned int before comparing for out of range values


Compare: https://github.com/RIOT-OS/RIOT/compare/7c24c4a73bd6...470304089ce0


More information about the commits mailing list