irRoute.c: warning: variable '...' is used uninitialized

"shouldn't happen" but if it did.

irRoute.c:594:2: warning: variable 'startPt' is used uninitialized whenever switch default is taken
irRoute.c:719:2: warning: variable 'destRect' is used uninitialized whenever switch default is taken

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles
2024-10-09 21:34:12 -04:00
committed by Tim Edwards
parent 1bb6a7f6c5
commit 35604400ed
+2
View File
@@ -595,6 +595,7 @@ irGetStartPoint(startType, argStartPt, argStartLabel, startLayerPtr, routeUse)
/* shouldn't happen */
{
ASSERT(FALSE,"irGetStartPoint");
goto abort;
}
break;
}
@@ -720,6 +721,7 @@ irGetDestRect(destType, argDestRect, argDestLabel, destLayerPtr, routeUse)
/* shouldn't happen */
{
ASSERT(FALSE,"irGetDestRect");
goto abort;
}
break;
}