From 9a23beddc5ada49ea1aacfbcbc91efbfc21458a5 Mon Sep 17 00:00:00 2001 From: Yin Fengwei Date: Wed, 15 Apr 2020 10:59:49 +0800 Subject: [PATCH] crashlog: fix build issue under latest clearlinux 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 --- misc/tools/acrn-crashlog/acrnprobe/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/acrn-crashlog/acrnprobe/loop.c b/misc/tools/acrn-crashlog/acrnprobe/loop.c index 4f06c1a11..ad6db22ba 100644 --- a/misc/tools/acrn-crashlog/acrnprobe/loop.c +++ b/misc/tools/acrn-crashlog/acrnprobe/loop.c @@ -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; }