diff options
author | dim <dim@FreeBSD.org> | 2012-04-21 14:23:46 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-04-21 14:23:46 +0000 |
commit | efe12312b4b1263d96d02aa53fb90be7f11e3ed8 (patch) | |
tree | ef097033df6dfde35c00dccff2cd4fc91bc303d5 /sys/cddl | |
parent | 968f07e10ac01db703ec17af4873eb7118e5e6c1 (diff) | |
download | FreeBSD-src-efe12312b4b1263d96d02aa53fb90be7f11e3ed8.zip FreeBSD-src-efe12312b4b1263d96d02aa53fb90be7f11e3ed8.tar.gz |
Fix the following clang warning in dpt(4):
sys/dev/dpt/dpt_scsi.c:612:18: error: implicit truncation from 'int' to bitfield changes value from -2 to 2 [-Werror,-Wconstant-conversion]
dpt->cache_type = DPT_CACHE_WRITEBACK;
^ ~~~~~~~~~~~~~~~~~~~
by defining DPT_CACHE_WRITEBACK as 2, since dpt_softc::cache_type is an
unsigned bitfield. No binary change.
MFC after: 1 week
Diffstat (limited to 'sys/cddl')
0 files changed, 0 insertions, 0 deletions