mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
committed by
Tim Edwards
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user