Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / editors / nedit / patches / patch-source_textDrag.c
blob9e341b1cdc6851ddfa23719c7ba4a6b93ead84b7
1 $NetBSD$
3 Silence gcc 4.5 warnings about uninitialized variables.
5 --- source/textDrag.c~ 2004-07-21 11:32:05.000000000 +0000
6 +++ source/textDrag.c
7 @@ -188,6 +188,10 @@ void BlockDragSelection(TextWidget tw, i
8 if (tw->text.dragState != PRIMARY_BLOCK_DRAG)
9 return;
11 + /* gcc 4.5 warns that these are uninitialized, not clear if it's right */
12 + tempModRangeEnd = -1;
13 + bufModRangeEnd = -1;
15 /* The operation of block dragging is simple in theory, but not so simple
16 in practice. There is a backup buffer (tw->text.dragOrigBuf) which
17 holds a copy of the buffer as it existed before the drag. When the