adam900710 / btrfs-fuse

A read-only, license friendly, FUSE based btrfs implementation
Other
26 stars 4 forks source link

Fix static_assert issue in C11 #4

Closed davide125 closed 3 years ago

davide125 commented 3 years ago

When compiling with gcc 8.4.1 I get

In file included from ../inode.h:9,
                 from ../inode.c:6:
../ondisk_format.h:228:72: error: expected ‘,’ before ‘)’ token
 static_assert(sizeof(struct btrfs_super_block) == BTRFS_SUPER_INFO_SIZE);

because static_assert requires two arguments in C11, so add a message to make it happy.