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:
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue