From a63fc71a55038f49671eb56d0ade99a48ad8d7ab Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 19 Aug 2025 08:05:45 +0800 Subject: tests: move struct size assertions into a test These checks are meant for libfuse maintainers only, and should not be exposed to users. Signed-off-by: CismonX --- include/fuse_common.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include') diff --git a/include/fuse_common.h b/include/fuse_common.h index b82f2c4..041188e 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -30,12 +30,6 @@ #define FUSE_MAKE_VERSION(maj, min) ((maj) * 100 + (min)) #define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION) -#ifdef HAVE_STATIC_ASSERT -#define fuse_static_assert(condition, message) static_assert(condition, message) -#else -#define fuse_static_assert(condition, message) -#endif - #ifdef __cplusplus extern "C" { #endif @@ -129,8 +123,6 @@ struct fuse_file_info { uint64_t reserved[2]; }; -fuse_static_assert(sizeof(struct fuse_file_info) == 64, - "fuse_file_info size mismatch"); /** * Configuration parameters passed to fuse_session_loop_mt() and @@ -719,8 +711,6 @@ struct fuse_conn_info { */ uint16_t reserved[31]; }; -fuse_static_assert(sizeof(struct fuse_conn_info) == 128, - "Size of struct fuse_conn_info must be 128 bytes"); struct fuse_session; struct fuse_pollhandle; -- cgit v1.2.3