From 6854b5655a4dbc71a19b25f7226b559f6eba6365 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 8 Jan 2025 19:17:42 +0100 Subject: package: cfgfs: Fix for ignored attribute warnings The 'bounded' attribute seems to never have existed. Replace it by the 'access' attribute which probably does the same. Declare decompressors' 'dst' parameter as read_write for now, no idea if any of them reads back the written output while decompressing. Signed-off-by: Phil Sutter --- package/cfgfs/src/compress.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/cfgfs/src/compress.h') diff --git a/package/cfgfs/src/compress.h b/package/cfgfs/src/compress.h index 413075d83..2237595c5 100644 --- a/package/cfgfs/src/compress.h +++ b/package/cfgfs/src/compress.h @@ -18,12 +18,12 @@ typedef int (*fwcf_compress_init_func)(void); /* in: *dst (malloc'd), src, size of source (max. INT_MAX) */ /* returns size of destination on success, -1 on failure */ typedef int (*fwcf_compress_work_func)(char **, char *, size_t) - __attribute__((bounded (string, 2, 3))); + __attribute__((access (read_only, 2, 3))); /* in: dst, max size of dst, src, size of source (max. INT_MAX) */ /* returns size of destination on success, -1 on failure */ typedef int (*fwcf_compress_rev_func)(char *, size_t, char *, size_t) - __attribute__((bounded (string, 1, 2))) - __attribute__((bounded (string, 3, 4))); + __attribute__((access (read_write, 1, 2))) + __attribute__((access (read_only, 3, 4))); typedef struct FWCF_COMPRESSOR { fwcf_compress_init_func init; -- cgit v1.2.3