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

(cherry picked from commit 00172f341666f2d5535ae6f4630c93593e86a4cb)

Details

Provenance
emasteAuthored on Apr 17 2023, 6:56 PM
Parents
rG3270f21597fb: sys/fs: do not report blocks allocated for synthetic file systems
Branches
Unknown
Tags
Unknown