From b06b5456a511d66af5aa2db7873dd8eb9b90527c Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 12 Dec 2017 20:09:41 -0500 Subject: [PATCH] btrfs: [] on the end of a struct field is a variable length array. This throws an error in Clang, so just declare these as pointers. --- src/add-ons/kernel/file_systems/btrfs/btrfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/btrfs/btrfs.h b/src/add-ons/kernel/file_systems/btrfs/btrfs.h index 57058f56db..3d0e7bfbc1 100644 --- a/src/add-ons/kernel/file_systems/btrfs/btrfs.h +++ b/src/add-ons/kernel/file_systems/btrfs/btrfs.h @@ -356,8 +356,8 @@ struct btrfs_dir_entry { uint16 data_length; uint16 name_length; uint8 type; - uint8 name[]; - uint8 data[]; // attribute data + uint8* name; + uint8* data; // attribute data uint16 DataLength() const { return B_LENDIAN_TO_HOST_INT16(data_length); } uint16 NameLength() const { return B_LENDIAN_TO_HOST_INT16(name_length); } ino_t InodeID() const { return location.ObjectID(); } -- 2.11.4.GIT