[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200429234826.GK18421@twin.jikos.cz>
Date: Thu, 30 Apr 2020 01:48:26 +0200
From: David Sterba <dsterba@...e.cz>
To: Arnd Bergmann <arnd@...db.de>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>,
Johannes Thumshirn <johannes.thumshirn@....com>,
ethanwu <ethanwu@...ology.com>, Qu Wenruo <wqu@...e.com>,
Filipe Manana <fdmanana@...e.com>, linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: fix gcc-4.8 build warning
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=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")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Added to devel queue, thanks.
Powered by blists - more mailing lists