Skip to content

Commit

Permalink
x86: fix a compiler warning
Browse files Browse the repository at this point in the history
Introduced in d2a42b5

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Oct 2, 2018
1 parent 3c3e6cc commit 51daae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwloc/topology-x86.c
Expand Up @@ -581,7 +581,7 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns
*/
if ((cpuid_type == intel || cpuid_type == zhaoxin) && highest_cpuid >= 0x0b && has_x2apic(features)) {
unsigned level, apic_nextshift, apic_number, apic_type, apic_id = 0, apic_shift = 0, id;
unsigned threadid __hwloc_attribute_unused;
unsigned threadid __hwloc_attribute_unused = 0; /* shut-up compiler */
for (level = 0; ; level++) {
ecx = level;
eax = 0x0b;
Expand Down

0 comments on commit 51daae8

Please sign in to comment.