HomeFreeBSD

geom: use bool for one-bit wide bit-field

Description

geom: use bool for one-bit wide bit-field

A one-bit wide bit-field can take only the values 0 and -1. Clang 16
introduced a warning that "implicit truncation from 'int' to a one-bit
wide bit-field changes value from 1 to -1". Fix by using c99 bool.

Reported by: Clang, via dim
Reviewed by: dim
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on Apr 17 2023, 6:56 PM
Parents
rG653e8c11f43d: Include bsd.linker.mk to get LINKER_TYPE and VERSION in rescue
Branches
Unknown
Tags
Unknown