aboutsummaryrefslogtreecommitdiffstats
path: root/vmemalloc.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-06-12 19:26:00 +0200
committerMattias Andrée <maandree@kth.se>2022-06-12 19:26:00 +0200
commitca8c0059f3e86eb178733d7fa9a8b0ba20d9c2ca (patch)
tree838569a039cffafacd217a7bb889f12a20be62bd /vmemalloc.c
parentReplace to last static inline's with line + extern inline, and fix warnings (diff)
downloadlibsimple-ca8c0059f3e86eb178733d7fa9a8b0ba20d9c2ca.tar.gz
libsimple-ca8c0059f3e86eb178733d7fa9a8b0ba20d9c2ca.tar.bz2
libsimple-ca8c0059f3e86eb178733d7fa9a8b0ba20d9c2ca.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'vmemalloc.c')
-rw-r--r--vmemalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vmemalloc.c b/vmemalloc.c
index 450affb..d725374 100644
--- a/vmemalloc.c
+++ b/vmemalloc.c
@@ -163,6 +163,7 @@ inval:
return -1;
}
+LIBSIMPLE_GCC_ONLY__(__attribute__((__const__)))
static size_t
gcd(size_t u, size_t v)
{