userland/linux: cc_pedantic actually works there and I found a bug with it

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-08-27 00:00:01 +00:00
parent efc4205416
commit f8b3ba9175
2 changed files with 1 additions and 2 deletions

View File

@@ -255,7 +255,6 @@ def get(path):
gnu_extension_properties = {
'c_std': 'gnu11',
'cc_pedantic': False,
'cxx_std': 'gnu++17'
}
# https://cirosantilli.com/linux-kernel-module-cheat#freestanding-programs

View File

@@ -29,7 +29,7 @@ void ProcStat_init(ProcStatm *result) {
}
if(7 != fscanf(
f,
"%ld %ld %ld %ld %ld %ld %ld",
"%lu %lu %lu %lu %lu %lu %lu",
&(result->size),
&(result->resident),
&(result->share),