Fix the warnings issued when compiling win/X11/. The error handler one is presumeably due to a change in /usr/include/X11/Intrinsic.h between different releases of X11 and is inconsequential. The indentation ones represented real bugs. The X11 convention of using 'foo(); argcount++;' requires braces when preceded by 'if' or 'else'. I don't know why the convention doesn't use comma instead of semi-colon between the function that adds an entry to an argument list and the accumulating count of the number of those arguments. A few years ago I added code to zero out various argument lists prior to their use, which shouldn't have been necessary. The wrong argument count being used when the 'if (whatever)' check fails could possibly have been the reason that pre-zeroing solved mystery problems. I don't remember enough details to attempt to go back and retest with this fix in place.
84 KiB
84 KiB