mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-30 21:59:15 +00:00
Don't reference uninitialized fields in DspInterface when processing window events in no-scroll case.
Initialize variables to suppress "may be uninitialized when used here" warning that couldn't actually happen.
This commit is contained in:
@@ -64,7 +64,7 @@ static inline unsigned ubound(unsigned lower, unsigned value, unsigned upper)
|
|||||||
|
|
||||||
void Set_BitGravity(XButtonEvent *event, DspInterface dsp, Window window, int grav)
|
void Set_BitGravity(XButtonEvent *event, DspInterface dsp, Window window, int grav)
|
||||||
{
|
{
|
||||||
Window OldWindow;
|
Window OldWindow = 0;
|
||||||
|
|
||||||
/* Change Background Pixmap of Gravity Window */
|
/* Change Background Pixmap of Gravity Window */
|
||||||
XLOCK;
|
XLOCK;
|
||||||
@@ -259,6 +259,7 @@ void process_Xevents(DspInterface dsp)
|
|||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
else if (noscroll) continue;
|
||||||
else if (report.xany.window == dsp->HorScrollBar)
|
else if (report.xany.window == dsp->HorScrollBar)
|
||||||
switch (report.type) {
|
switch (report.type) {
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
|
|||||||
Reference in New Issue
Block a user