Fix compiler warnings (gcc 4.3?).

SVN revision: 33668
This commit is contained in:
Kim Woelders 2008-02-03 16:47:22 +00:00
parent 5fd16661e0
commit 5090099325
3 changed files with 10 additions and 5 deletions

View File

@ -633,7 +633,8 @@ main(int argc, char **argv)
break;
case MotionNotify:
while (XCheckTypedEvent(disp, ev.type, &ev));
while (XCheckTypedEvent(disp, ev.type, &ev))
;
{
static Link *pl = NULL;
char found = 0;

View File

@ -65,7 +65,8 @@ cpp_lookup(const char *name, int len, int hash)
if (len < 0)
{
for (bp = name; IS_IDCHAR(*bp); bp++);
for (bp = name; IS_IDCHAR(*bp); bp++)
;
len = bp - name;
}
if (hash < 0)

View File

@ -607,7 +607,8 @@ cpp_define(cpp_reader * pfile, unsigned char *str)
cpp_error(pfile, "malformed option `-D %s'", str);
return;
}
while (is_idchar[*++p]);
while (is_idchar[*++p])
;
if (*p == 0)
{
buf = (unsigned char *)alloca(p - buf + 4);
@ -670,7 +671,8 @@ make_assertion(cpp_reader * pfile, const char *option, const char *str)
cpp_error(pfile, "malformed option `%s %s'", option, str);
return;
}
while (is_idchar[*++p]);
while (is_idchar[*++p])
;
while (*p == ' ' || *p == '\t')
p++;
if (!(*p == 0 || *p == '('))
@ -1736,7 +1738,8 @@ check_macro_name(cpp_reader * pfile, unsigned char *symname, const char *usage)
unsigned char *p;
int sym_length;
for (p = symname; is_idchar[*p]; p++);
for (p = symname; is_idchar[*p]; p++)
;
sym_length = p - symname;
if (sym_length == 0)
{