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-04 19:59:00 +01:00 committed by Tim Edwards
parent 1bb6a7f6c5
commit 35604400ed
1 changed files with 2 additions and 0 deletions

View File

@ -595,6 +595,7 @@ irGetStartPoint(startType, argStartPt, argStartLabel, startLayerPtr, routeUse)
/* shouldn't happen */ /* shouldn't happen */
{ {
ASSERT(FALSE,"irGetStartPoint"); ASSERT(FALSE,"irGetStartPoint");
goto abort;
} }
break; break;
} }
@ -720,6 +721,7 @@ irGetDestRect(destType, argDestRect, argDestLabel, destLayerPtr, routeUse)
/* shouldn't happen */ /* shouldn't happen */
{ {
ASSERT(FALSE,"irGetDestRect"); ASSERT(FALSE,"irGetDestRect");
goto abort;
} }
break; break;
} }