mirror of https://github.com/OpenTTD/OpenTTD
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
parent
311f2482fa
commit
b4682bff97
|
@ -61,7 +61,7 @@ bool LoadLibraryList(Function proc[], const char *dll)
|
||||||
for (;;) {
|
for (;;) {
|
||||||
FARPROC p;
|
FARPROC p;
|
||||||
|
|
||||||
while (*dll++ != '\0');
|
while (*dll++ != '\0') { /* Nothing */ }
|
||||||
if (*dll == '\0') break;
|
if (*dll == '\0') break;
|
||||||
#if defined(WINCE)
|
#if defined(WINCE)
|
||||||
p = GetProcAddress(lib, MB_TO_WIDE(dll));
|
p = GetProcAddress(lib, MB_TO_WIDE(dll));
|
||||||
|
@ -796,7 +796,7 @@ void FiosGetDrives()
|
||||||
fios->mtime = 0;
|
fios->mtime = 0;
|
||||||
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
|
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
|
||||||
ttd_strlcpy(fios->title, fios->name, lengthof(fios->title));
|
ttd_strlcpy(fios->title, fios->name, lengthof(fios->title));
|
||||||
while (*s++ != '\0');
|
while (*s++ != '\0') { /* Nothing */ }
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue