Skip to content

Commit

Permalink
crashlog: fix build issue under latest clearlinux
Browse files Browse the repository at this point in the history
gcc in latest clearlinux enabled the pointer-sign warning as
default. This breaks the acrn-crashlog build.

Make acrn-crashlog build issue fixed by convert to correct
pointer type.

Tracked-On: #4636
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
  • Loading branch information
fyin1 authored and wenlingz committed Apr 20, 2020
1 parent d742be2 commit 9a23bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/tools/acrn-crashlog/acrnprobe/loop.c
Expand Up @@ -231,7 +231,7 @@ int loopdev_check_parname(const char *loopdev, const char *parname)
/* only look into the primary super block */
if (super.s_volume_name[0]) {
close(fd);
return !strcmp(super.s_volume_name, parname);
return !strcmp((const char *)super.s_volume_name, parname);
}
break;
}
Expand Down

0 comments on commit 9a23bed

Please sign in to comment.