fix clang warning and errors

This commit is contained in:
Nikita Smith
2025-03-17 15:25:49 -07:00
parent 344cd8ffbf
commit 1dc0192322
3 changed files with 13 additions and 3 deletions
+2 -2
View File
@@ -1787,7 +1787,7 @@ dw_rnglist_from_attrib_ptr(Arena *arena, DW_Input *input, DW_CompUnit *cu, DW_At
{
Rng1U64List rnglist = {0};
DW_AttribClass value_class = dw_value_class_from_attrib(cu, attrib);
if (value_class == DW_AttribClass_RngListPtr || DW_AttribClass_RngList) {
if (value_class == DW_AttribClass_RngListPtr || value_class == DW_AttribClass_RngList) {
rnglist = dw_interp_rnglist(arena, input, cu, attrib->form_kind, attrib->form);
} else if (value_class != DW_AttribClass_Null) {
Assert(!"unexpected value class");
@@ -1947,7 +1947,7 @@ dw_byte_size_from_tag(DW_Input *input, DW_CompUnit *cu, DW_Tag tag)
internal U32
dw_byte_size_32_from_tag(DW_Input *input, DW_CompUnit *cu, DW_Tag tag)
{
U32 byte_size32;
U32 byte_size32 = 0;
U64 byte_size64;
if (dw_try_byte_size_from_tag(input, cu, tag, &byte_size64)) {
byte_size32 = safe_cast_u32(byte_size64);
+10 -1
View File
@@ -4,7 +4,16 @@
internal void
bucket_list_concat_in_place(BucketList *list, BucketList *to_concat)
{
SLLConcatInPlaceNoCount(list, to_concat);
if (to_concat->first) {
if (list->first) {
list->last->next = to_concat->first;
list->last = to_concat->last;
} else {
list->first = to_concat->first;
list->last = to_concat->last;
}
MemoryZeroStruct(to_concat);
}
}
internal BucketNode *
+1
View File
@@ -10,6 +10,7 @@
#include "third_party/rad_lzb_simple/rad_lzb_simple.c"
#include "third_party/xxHash/xxhash.c"
#include "third_party/xxHash/xxhash.h"
#include "third_party/radsort/radsort.h"
////////////////////////////////