[comp.windows.x.motif] FAQ 56 correction

amc@wlv.imsd.contel.com (Allen M. Cohen) (06/26/91)

I encountered an error in FAQ 56, when using gcc with -O; namely,
Bool keep_grab = True;
should be:
static Bool keep_grab;
keep_grab = True;
or use "volatile".
The problem is that keep_grab gets optimized out in the event processing
loop.



<> Allen M. Cohen                  Internet:  amc@wlv.imsd.contel.com       <>
<> 1853 Stonesgate St.             UUCP:      elroy.Jpl.Nasa.Gov!agi0!allen <>
<> Westlake Village, Ca. 91361     Telephone: (805) 498-9611 ext. 195       <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>