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:
parent
1bb6a7f6c5
commit
35604400ed
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue