diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2019-06-21 23:47:47 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2019-06-21 23:47:47 +0300 |
commit | c00688ae11bc96506a6240122ec53b74bbad6235 (patch) | |
tree | ea0ea3cc4e51dd8fbc4f717586b0f6f9101014a4 /os_dep.c | |
parent | 7f9a90590ae50e18d99548adfeb2e72fb00b4225 (diff) | |
download | bdwgc-c00688ae11bc96506a6240122ec53b74bbad6235.tar.gz |
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.
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |