git: f6d7ceb2baa3 - stable/13 - boolean_t: change to unsigned int to avoid signed bitfield warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 10:41:13 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f6d7ceb2baa3dba1503165e7482d370cb0e32d9a commit f6d7ceb2baa3dba1503165e7482d370cb0e32d9a Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-04-25 17:52:40 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-05-03 09:33:01 +0000 boolean_t: change to unsigned int to avoid signed bitfield warnings This is the final part, which actually makes boolean_t unsigned. Note that we do not change its size, nor do we try to change it directly to bool, since that results in a lot of regressions. Converting the remaining instances of boolean_t to plain C99 bool can now be done in a piecemeal fashion, after which boolean_t may hopefully be retired. MFC after: 1 week Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39753 (cherry picked from commit 3029b0b0e9d68eb54e3bdd9e3e49e0f0d2d57835) --- sys/sys/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/types.h b/sys/sys/types.h index 58abcf00cebb..4117ed60660d 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -271,7 +271,7 @@ typedef __vm_size_t vm_size_t; typedef __rman_res_t rman_res_t; #ifdef _KERNEL -typedef int boolean_t; +typedef unsigned int boolean_t; typedef struct _device *device_t; typedef __intfptr_t intfptr_t;