silence all gcc warnings

This commit is contained in:
Russ Cox
2005-11-07 17:13:41 +00:00
parent 7732ac0a9b
commit 1c8b499228
47 changed files with 192 additions and 128 deletions

View File

@ -8,7 +8,7 @@
* necessary to back up the input stream up one byte after calling charstod.
*/
#define ADVANCE *s++ = c; if(s>=e) return NaN(); c = (*f)(vp)
#define ADVANCE *s++ = c; if(s>=e) return __NaN(); c = (*f)(vp)
double
charstod(int(*f)(void*), void *vp)
@ -45,34 +45,34 @@ charstod(int(*f)(void*), void *vp)
}else if(s == start && (c == 'i' || c == 'I')){
ADVANCE;
if(c != 'n' && c != 'N')
return NaN();
return __NaN();
ADVANCE;
if(c != 'f' && c != 'F')
return NaN();
return __NaN();
ADVANCE;
if(c != 'i' && c != 'I')
return NaN();
return __NaN();
ADVANCE;
if(c != 'n' && c != 'N')
return NaN();
return __NaN();
ADVANCE;
if(c != 'i' && c != 'I')
return NaN();
return __NaN();
ADVANCE;
if(c != 't' && c != 'T')
return NaN();
return __NaN();
ADVANCE;
if(c != 'y' && c != 'Y')
return NaN();
return __NaN();
ADVANCE; /* so caller can back up uniformly */
USED(c);
}else if(s == str && (c == 'n' || c == 'N')){
ADVANCE;
if(c != 'a' && c != 'A')
return NaN();
return __NaN();
ADVANCE;
if(c != 'n' && c != 'N')
return NaN();
return __NaN();
ADVANCE; /* so caller can back up uniformly */
USED(c);
}