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".
This commit is contained in:
R. Timothy Edwards 2025-08-04 16:38:41 -04:00
parent 1653b982af
commit a3d02d92cc
1 changed files with 2 additions and 2 deletions

View File

@ -1183,7 +1183,7 @@ spcdevHierMergeVisit(
for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) 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 */ /* To-do: add back source, drain attribute check */
@ -1619,7 +1619,7 @@ devMergeHierVisit(
for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) 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; cf = cfp->dev;
cg = &cfp->dev->dev_terms[0]; cg = &cfp->dev->dev_terms[0];