diff options
author | CismonX <admin@cismon.net> | 2025-08-19 08:05:45 +0800 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-08-19 20:07:15 +0200 |
commit | d9e500c1acae30d809ade8197f015b8437305e65 (patch) | |
tree | d1947da6527e7d04a57af30255d92ca7d669bbec /include/fuse_common.h | |
parent | af48907c0b534f7f81f639f546bfcea6bc8e99b1 (diff) | |
download | libfuse-d9e500c1acae30d809ade8197f015b8437305e65.tar.gz |
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 <admin@cismon.net>
(cherry picked from commit a63fc71a55038f49671eb56d0ade99a48ad8d7ab)
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r-- | include/fuse_common.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index dd08f44..f968990 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 @@ -708,8 +700,6 @@ struct fuse_conn_info { */ uint32_t reserved[16]; }; -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; |