mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
selOps.c: warning: variable 'type' is used uninitialized
selOps.c:1942:11: warning: variable 'type' is used uninitialized whenever 'if' condition is false clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
committed by
Tim Edwards
parent
3919cc5b63
commit
fa3a01c486
@@ -1942,6 +1942,8 @@ selStretchFillFunc3(tile, area)
|
|||||||
else if (selStretchY < 0)
|
else if (selStretchY < 0)
|
||||||
type = (SplitDirection(tile) ? SplitLeftType(tile) :
|
type = (SplitDirection(tile) ? SplitLeftType(tile) :
|
||||||
SplitRightType(tile));
|
SplitRightType(tile));
|
||||||
|
else
|
||||||
|
type = TT_SPACE;
|
||||||
if (type == TT_SPACE) return 0; /* nothing to stretch */
|
if (type == TT_SPACE) return 0; /* nothing to stretch */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user