aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-12 14:01:18 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-12 14:01:18 +0200
commit32c9f6d13a1c515cb892f3360493e613d6b777e1 (patch)
treedacc2607af43e44ea3b4f5cb1bb948c126ca5d2c /src/check_type.cpp
parent0a97e01827a9f35813d925c98efae6d78f10fc53 (diff)
Remove `bit_field` -> `bit_set` warning.
The "This 'bit_field' might be better expressed as a 'bit_set' since all of the fields are booleans, of 1-bit in size, and the backing type is an integer" warning is imperfect. Disable it for now.
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 2fcd7ff24..89dcacfc5 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1155,8 +1155,7 @@ gb_internal void check_bit_field_type(CheckerContext *ctx, Type *bit_field_type,
}
}
-
-
+ #if 0 // Reconsider at a later date
if (bit_sizes.count > 0 && is_type_integer(backing_type)) {
bool all_booleans = is_type_boolean(fields[0]->type);
bool all_ones = bit_sizes[0] == 1;
@@ -1182,7 +1181,7 @@ gb_internal void check_bit_field_type(CheckerContext *ctx, Type *bit_field_type,
}
}
}
-
+ #endif
bit_field_type->BitField.fields = slice_from_array(fields);
bit_field_type->BitField.bit_sizes = slice_from_array(bit_sizes);