Arnd Bergmann 9c6c723f48 btrfs: fix gcc-4.8 build warning for struct initializer
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.c:394:9: error: (near initialization for
'target.rbnode') [-Werror=missing-braces]

Use the GNU empty initializer extension to avoid this.

Fixes: ed58f2e66e84 ("btrfs: backref, don't add refs from shared block when resolving normal backref")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-04-30 12:17:49 +02:00
..
2020-03-23 17:02:00 +01:00
2020-03-23 17:02:00 +01:00
2020-03-23 17:02:00 +01:00
2019-11-18 23:43:44 +01:00
2020-03-23 17:02:00 +01:00
2020-03-23 17:01:43 +01:00
2020-03-23 17:01:43 +01:00
2020-01-20 16:40:55 +01:00
2019-11-18 17:51:51 +01:00
2020-03-23 17:02:00 +01:00