Fix clang and cppcheck warnings.

This commit is contained in:
Wilson Snyder
2017-10-14 14:51:57 -04:00
parent 4b7ee8267b
commit bbed4d50ab
7 changed files with 9 additions and 3 deletions
+2
View File
@@ -215,8 +215,10 @@ uint64_t V3Os::memUsageBytes() {
if (7 != fscanf(fp, "%" VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d %"
VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d",
&size, &resident, &share, &text, &lib, &data, &dt)) {
fclose(fp);
return 0;
}
fclose(fp);
return (text + data) * getpagesize();
#endif
}