summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-13 22:42:10 +0000
committerglx <glx@openttd.org>2008-05-13 22:42:10 +0000
commitb4682bff979f1fb062ca8b6913f28ac4b1d73880 (patch)
tree8ef30a5ea4ed4832d1d35140eeaeee3448973982 /src
parent311f2482fa31947dacad63fc11a1339caaf0db18 (diff)
downloadopenttd-b4682bff979f1fb062ca8b6913f28ac4b1d73880.tar.xz
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
Diffstat (limited to 'src')
-rw-r--r--src/win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index fd19af539..0b20032e6 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -61,7 +61,7 @@ bool LoadLibraryList(Function proc[], const char *dll)
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 @@ void FiosGetDrives()
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
}