diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-02-04 17:34:08 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-02-18 17:07:17 +0100 |
commit | 8387df1551f18b90b3936c7cbb311416c3db8032 (patch) | |
tree | 2cc511d578c0a2ea01226cc6b7f0d14e37294954 /XUtils.c | |
parent | f60d4057573ecb6a5021e754f54983c709977c62 (diff) |
Annotate functions with access attribute
Supported by GCC since version 10.
Diffstat (limited to 'XUtils.c')
-rw-r--r-- | XUtils.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |