From f8b3ba9175daad4218cd9ced7c23db6dc3b2e007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 27 Aug 2019 00:00:01 +0000 Subject: [PATCH] userland/linux: cc_pedantic actually works there and I found a bug with it --- path_properties.py | 1 - userland/linux/mmap_anonymous_touch.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/path_properties.py b/path_properties.py index f19700f..4c4767f 100644 --- a/path_properties.py +++ b/path_properties.py @@ -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 diff --git a/userland/linux/mmap_anonymous_touch.c b/userland/linux/mmap_anonymous_touch.c index 513864f..bac9b95 100644 --- a/userland/linux/mmap_anonymous_touch.c +++ b/userland/linux/mmap_anonymous_touch.c @@ -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),