From 1ce52ef5cb52e1c4d60679c98f7282f137eb6f57 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 13 May 2008 22:42:10 +0000 Subject: (svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+ --- src/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/win32.cpp') 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 } -- cgit v1.2.3-70-g09d2