From: Ivan Maidanski Date: Fri, 21 Jun 2019 20:47:47 +0000 (+0300) Subject: Fix 'while clause does not guard' GCC warning in GC_parse_map_entry X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c00688ae11bc96506a6240122ec53b74bbad6235;p=gc Fix 'while clause does not guard' GCC warning in GC_parse_map_entry * os_dep.c [DYNAMIC_LOADING && USE_PROC_FOR_LIBRARIES || IA64 || INCLUDE_LINUX_THREAD_DESCR || REDIRECT_MALLOC] (GC_parse_map_entry): Fix "while" statements indentation; place just one "while" statement on a line. --- diff --git a/os_dep.c b/os_dep.c index d86fa6b2..10a3b659 100644 --- a/os_dep.c +++ b/os_dep.c @@ -303,10 +303,12 @@ GC_INNER char * GC_get_maps(void) GC_ASSERT(*p == 'r' || *p == '-'); *prot = (char *)p; /* Skip past protection field to offset field */ - while (!isspace(*p)) ++p; while (isspace(*p)) ++p; + while (!isspace(*p)) ++p; + while (isspace(*p)) p++; GC_ASSERT(isxdigit(*p)); /* Skip past offset field, which we ignore */ - while (!isspace(*p)) ++p; while (isspace(*p)) ++p; + while (!isspace(*p)) ++p; + while (isspace(*p)) p++; maj_dev_start = p; GC_ASSERT(isxdigit(*maj_dev_start)); *maj_dev = strtoul((char *)maj_dev_start, NULL, 16);