Fix warnings in optimized compile.

This commit is contained in:
Kris Maglione 2009-10-01 16:42:54 -04:00
parent 1a81a510f3
commit 262c6ec430
7 changed files with 8 additions and 2 deletions

View File

@ -51,6 +51,7 @@ history_dump(const char *path, int max) {
Item *h, *first;
int i, n, fd;
SET(first);
if(fork() != 0)
return;

View File

@ -138,6 +138,7 @@ _menu_draw(bool draw) {
pad = (font->height & ~1);
rd = r;
rp = ZR; // SET(rp)
if (prompt) {
if (!promptw)
promptw = textwidth(font, prompt) + 2 * ltwidth;

View File

@ -141,11 +141,11 @@ _backtrace(int pid, char *btarg) {
int fd[3], p[2];
int status, cmdfd;
gdbcmd = estrdup("/tmp/gdbcmd.XXXXXX");
if(pipe(p) < 0)
goto done;
closeexec(p[0]);
gdbcmd = estrdup("/tmp/gdbcmd.XXXXXX");
cmdfd = mkstemp(gdbcmd);
if(cmdfd < 0)
goto done;

View File

@ -90,6 +90,7 @@ bar_create(Bar **bp, const char *name) {
strlcat(b->buf, " ", sizeof(b->buf));
strlcat(b->buf, b->text, sizeof(b->buf));
SET(i);
for(sp=screens; (s = *sp); sp++) {
i = bp - s->bar;
if(i < nelem(s->bar))

View File

@ -219,6 +219,7 @@ mouse_resizecolframe(Frame *f, Align align) {
v = selview;
d = divs;
SET(a);
foreach_column(v, s, a) {
if(a == f->area)
break;

View File

@ -87,6 +87,7 @@ leastthing(Rectangle rect, int direction, Vector_ptr *vec, Rectangle (*key)(void
int i, best, d;
SET(d);
SET(best);
for(i=0; i < vec->n; i++) {
p = vec->ary[i];
r = key(p);
@ -112,7 +113,7 @@ leastthing(Rectangle rect, int direction, Vector_ptr *vec, Rectangle (*key)(void
void*
findthing(Rectangle rect, int direction, Vector_ptr *vec, Rectangle (*key)(void*), bool wrap) {
Rectangle isect;
Rectangle r, bestisect, bestr;
Rectangle r, bestisect = {0,}, bestr = {0,};
void *best, *p;
int i, n;

View File

@ -260,6 +260,7 @@ xls(int argc, char *argv[]) {
usage();
}ARGEND;
count = 0;
file = EARGF(usage());
do {
stat = ixp_stat(client, file);