silence this warning: ; mk screenlock.install 8^c -FTVw screenlock.c warning: screenlock.c:254 non-interruptable temporary Notes: Mon Jul 26 14:45:40 EDT 2010 geoff The warning is irrelevant in this case and there's a simpler way to silence it. Reference: /n/sources/patch/sorry/screenlocktmp Date: Mon Jul 26 20:27:04 CES 2010 Signed-off-by: quanstro@quanstro.net Reviewed-by: geoff --- /sys/src/cmd/screenlock.c Mon Jul 26 20:26:37 2010 +++ /sys/src/cmd/screenlock.c Mon Jul 26 20:26:36 2010 @@ -206,7 +206,7 @@ char buf[Nfld*Fldlen], *flds[Nfld], newcmd[128], cbuf[Cursorlen]; int fd, dx, dy; Image *i; - Point p; + Point p, tmp; Rectangle r; Tm *tm; @@ -251,7 +251,8 @@ /* identify the user on screen, centered */ tm = localtime(time(0)); s = smprint("user %s at %d:%2d", getuser(), tm->hour, tm->min); - p = subpt(p, Pt(stringsize(font, "m").x * strlen(s) / 2, 0)); + tmp = stringsize(font, "m"); + p = subpt(p, Pt(tmp.x * strlen(s) / 2, 0)); screenstring(p, s); }