[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5h1rc7e8ei.wl-tiwai@suse.de>
Date: Mon, 22 Mar 2021 12:26:45 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Arnd Bergmann <arnd@...db.de>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: core: avoid -Wempty-body warnings
On Mon, 22 Mar 2021 11:31:10 +0100,
Arnd Bergmann wrote:
>
> From: Arnd Bergmann <arnd@...db.de>
>
> Building with 'make W=1' shows some warnings about empty function-style
> macros:
>
> sound/core/pcm_memory.c: In function 'preallocate_pages':
> sound/core/pcm_memory.c:236:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 236 | preallocate_info_init(substream);
>
> sound/core/seq_device.c: In function 'snd_seq_device_dev_register':
> sound/core/seq_device.c:163:41: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 163 | queue_autoload_drivers();
>
> Change them to empty inline functions, which are more robust here.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Thanks, applied.
Takashi
Powered by blists - more mailing lists