diff options
author | CismonX <admin@cismon.net> | 2024-05-07 11:22:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 13:22:59 +0200 |
commit | e4e68739737b19c41efbb5ab508cfdd163c2536f (patch) | |
tree | 173a3664938596891f971f53f50b058a45738169 /include | |
parent | b701673e7429336248c307c93c2c26f443719255 (diff) | |
download | libfuse-e4e68739737b19c41efbb5ab508cfdd163c2536f.tar.gz |
fuse_common.h: fix warning on _Static_assert() (#939)
_Static_assert() is an ISO C11 feature. Make the check more
standard-conformant so that the compiler won't give pedantic warnings.
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index 4efa53d..bafcda0 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -957,7 +957,7 @@ void fuse_loop_cfg_convert(struct fuse_loop_config *config, * On 32bit systems please add -D_FILE_OFFSET_BITS=64 to your compile flags! */ -#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 6) && !defined __cplusplus +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) _Static_assert(sizeof(off_t) == 8, "fuse: off_t must be 64bit"); #else struct _fuse_off_t_must_be_64bit_dummy_struct \ |