From a3d02d92cc5cadfc6335c39c44dbbf757114c06b Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Mon, 4 Aug 2025 16:38:41 -0400 Subject: [PATCH] Added a type cast in ext2spice/ext2hier.c to avoid having the compiler complain about a "const" variable passed to a routine not declaring "const". --- ext2spice/ext2hier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext2spice/ext2hier.c b/ext2spice/ext2hier.c index 46f49bb4..9c19285d 100644 --- a/ext2spice/ext2hier.c +++ b/ext2spice/ext2hier.c @@ -1183,7 +1183,7 @@ spcdevHierMergeVisit( for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) { - if ((pmode = parallelDevs(fp, cfp)) != NOT_PARALLEL) + if ((pmode = parallelDevs(fp, (devMerge *)cfp)) != NOT_PARALLEL) { /* To-do: add back source, drain attribute check */ @@ -1619,7 +1619,7 @@ devMergeHierVisit( for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) { - if ((pmode = parallelDevs(fp, cfp)) != NOT_PARALLEL) + if ((pmode = parallelDevs(fp, (devMerge *)cfp)) != NOT_PARALLEL) { cf = cfp->dev; cg = &cfp->dev->dev_terms[0];