From 8387df1551f18b90b3936c7cbb311416c3db8032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 4 Feb 2023 17:34:08 +0100 Subject: Annotate functions with access attribute Supported by GCC since version 10. --- XUtils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'XUtils.c') diff --git a/XUtils.c b/XUtils.c index 6a021f35..f54ad49f 100644 --- a/XUtils.c +++ b/XUtils.c @@ -265,6 +265,7 @@ char* xStrndup(const char* str, size_t len) { return data; } +ATTR_ACCESS3_W(2, 3) static ssize_t readfd_internal(int fd, void* buffer, size_t count) { if (!count) { close(fd); -- cgit v1.2.3