Re: [PATCH] btrfs: fix gcc-4.8 build warning

2020-04-29 Thread David Sterba
On Wed, Apr 29, 2020 at 03:27:32PM +0200, Arnd Bergmann wrote: > Some older compilers like gcc-4.8 warn about mismatched curly > braces in a initializer: > > fs/btrfs/backref.c: In function 'is_shared_data_backref': > fs/btrfs/backref.c:394:9: error: missing braces around > initializer [-Werror=mi

Re: [PATCH] btrfs: fix gcc-4.8 build warning

2020-04-29 Thread Qu Wenruo
On 2020/4/29 下午9:27, Arnd Bergmann wrote: > Some older compilers like gcc-4.8 warn about mismatched curly > braces in a initializer: > > fs/btrfs/backref.c: In function 'is_shared_data_backref': > fs/btrfs/backref.c:394:9: error: missing braces around > initializer [-Werror=missing-braces] > s

[PATCH] btrfs: fix gcc-4.8 build warning

2020-04-29 Thread Arnd Bergmann
Some older compilers like gcc-4.8 warn about mismatched curly braces in a initializer: fs/btrfs/backref.c: In function 'is_shared_data_backref': fs/btrfs/backref.c:394:9: error: missing braces around initializer [-Werror=missing-braces] struct prelim_ref target = {0}; ^ fs/btrfs/backref