Skip to content

Commit d3a86a8

Browse files
Fix compile warnings in arm/windows (#323)
* Update init-by-logical-sys-info.c Fix compiler warnings * Update init.c fix compiler warning * reformat init.c attempt to fix clang format errors * Update init-by-logical-sys-info.c * Update init-by-logical-sys-info.c attempt to fix clang format errors
1 parent f01ce87 commit d3a86a8

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/arm/windows/init-by-logical-sys-info.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -750,12 +750,6 @@ void store_core_info_per_processor(
750750
if (cores) {
751751
processors[processor_global_index].core = cores + core_id;
752752
cores[core_id].core_id = core_id;
753-
754-
if (chip_info->uarchs == NULL) {
755-
cpuinfo_log_error("uarch is NULL for core %d", core_id);
756-
return;
757-
}
758-
759753
cores[core_id].uarch = chip_info->uarchs[0].uarch;
760754
cores[core_id].frequency = chip_info->uarchs[0].frequency;
761755

@@ -842,7 +836,6 @@ static bool connect_packages_cores_clusters_by_processors(
842836
processor->cluster = cluster;
843837

844838
if (chip_info) {
845-
size_t converted_chars = 0;
846839
if (!WideCharToMultiByte(
847840
CP_UTF8,
848841
WC_ERR_INVALID_CHARS,

src/arm/windows/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ static struct woa_chip_info woa_chip_unknown = {L"Unknown", {{cpuinfo_vendor_unk
2121

2222
BOOL CALLBACK cpuinfo_arm_windows_init(PINIT_ONCE init_once, PVOID parameter, PVOID* context) {
2323
struct woa_chip_info* chip_info = NULL;
24-
enum cpuinfo_vendor vendor = cpuinfo_vendor_unknown;
2524

2625
set_cpuinfo_isa_fields();
2726

@@ -219,4 +218,4 @@ static void set_cpuinfo_isa_fields(void) {
219218
cpuinfo_isa.pmull = crypto;
220219

221220
cpuinfo_isa.crc32 = IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE) != 0;
222-
}
221+
}

0 commit comments

Comments
 (0)