# HG changeset patch # User glx # Date 1210718530 0 # Node ID 116b667a5956d26061e778c4a4bdd58f13537fa2 # Parent 6824a85fa05e71ba4fa036ad3a12aa2d3fc170b8 (svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+ diff -r 6824a85fa05e -r 116b667a5956 src/win32.cpp --- a/src/win32.cpp Tue May 13 22:19:20 2008 +0000 +++ b/src/win32.cpp Tue May 13 22:42:10 2008 +0000 @@ -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 }