From 7640634cedbfe876b924207ffbbf0d9989df1c22 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 8 Sep 2022 10:14:00 +0100 Subject: Fix unused function warning. --- src/shm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shm.c') diff --git a/src/shm.c b/src/shm.c index 9e0833f..9658a75 100644 --- a/src/shm.c +++ b/src/shm.c @@ -5,6 +5,8 @@ #include #include "shm.h" +/* These two functions aren't used on linux. */ +#ifndef __linux__ static void randname(char *buf) { struct timespec ts; @@ -31,6 +33,7 @@ static int create_shm_file(void) } while (retries > 0 && errno == EEXIST); return -1; } +#endif int shm_allocate_file(size_t size) { -- cgit v1.2.3