Skip to content

Commit 1f4386c

Browse files
committed
address compiler warnings
Change-Id: I842966645e88403a08429fc23fe4b03fc0fdc4a1
1 parent fea80c1 commit 1f4386c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/cpucounters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ bool PCM::discoverSystemTopology()
11851185
#else
11861186
pcm_cpuid(leaf, 0x0, cpuid_args);
11871187
#endif
1188-
return cpuid_args.array[3];
1188+
return cpuid_args.unsignedArray[3];
11891189
};
11901190
if (topologyDomainMap.size())
11911191
{

src/topologyentry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct PCM_API TopologyEntry // describes a core
114114
}
115115
};
116116

117-
inline void fillEntry(TopologyEntry & entry, const uint32 & smtMaskWidth, const uint32 & coreMaskWidth, const uint32 & l2CacheMaskShift, const int apic_id)
117+
inline void fillEntry(TopologyEntry & entry, const uint32 & smtMaskWidth, const uint32 & coreMaskWidth, const uint32 & l2CacheMaskShift, const unsigned int apic_id)
118118
{
119119
#ifndef USER_KERNEL_SHARED
120120
DBG(1, "entry.os_id = ", entry.os_id, " apic_id = ", apic_id);

src/types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,7 @@ inline uint64 extract_bits_64(uint64 myin, uint32 beg, uint32 end)
16541654
union PCM_CPUID_INFO
16551655
{
16561656
int array[4];
1657+
unsigned int unsignedArray[4];
16571658
struct { unsigned int eax, ebx, ecx, edx; } reg;
16581659
};
16591660

0 commit comments

Comments
 (0)