Mercurial > hg > openttd
changeset 9215:9e2b4d83a8f7 draft
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
author | glx <glx@openttd.org> |
---|---|
date | Tue, 13 May 2008 22:42:10 +0000 |
parents | f7d71b69b539 |
children | 785843452a56 |
files | src/win32.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/win32.cpp +++ b/src/win32.cpp @@ -61,7 +61,7 @@ for (;;) { FARPROC p; - while (*dll++ != '\0'); + while (*dll++ != '\0') { /* Nothing */ } if (*dll == '\0') break; #if defined(WINCE) p = GetProcAddress(lib, MB_TO_WIDE(dll)); @@ -796,7 +796,7 @@ fios->mtime = 0; snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF); ttd_strlcpy(fios->title, fios->name, lengthof(fios->title)); - while (*s++ != '\0'); + while (*s++ != '\0') { /* Nothing */ } } #endif }