Re: [PATCH] [v2] audit: avoid -Wempty-body warning

2021-03-24 Thread Paul Moore
On Mon, Mar 22, 2021 at 12:28 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > gcc warns about an empty statement when audit_remove_mark is defined to > nothing: > > kernel/auditfilter.c: In function 'audit_data_to_entry': > kernel/auditfilter.c:609:51: error: suggest braces around empty body

Re: [PATCH] [v2] audit: avoid -Wempty-body warning

2021-03-22 Thread Richard Guy Briggs
On 2021-03-22 17:27, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc warns about an empty statement when audit_remove_mark is defined to > nothing: > > kernel/auditfilter.c: In function 'audit_data_to_entry': > kernel/auditfilter.c:609:51: error: suggest braces around empty body in an > 'if'

[PATCH] [v2] audit: avoid -Wempty-body warning

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann gcc warns about an empty statement when audit_remove_mark is defined to nothing: kernel/auditfilter.c: In function 'audit_data_to_entry': kernel/auditfilter.c:609:51: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 609 | au