Re: [PATCH 1/3] build: Check for -Wimplicit-fallthrough=5 separately

2021-03-05 Thread Mark Wielaard
Hi Timm, On Wed, 2021-02-17 at 10:27 +0100, Timm Bäder via Elfutils-devel wrote: > GCC accepts the =5, which means it doesn't try to parse any comments > and only accepts the fallthrough attribute in code. Clang does not ever > parse any comments and always wants the fallthrough attribute anyway.

[PATCH 1/3] build: Check for -Wimplicit-fallthrough=5 separately

2021-02-17 Thread Timm Bäder via Elfutils-devel
From: Timm Bäder GCC accepts the =5, which means it doesn't try to parse any comments and only accepts the fallthrough attribute in code. Clang does not ever parse any comments and always wants the fallthrough attribute anyway. Clang also doesn't accept the =n parameter for -Wimplicit-fallthrough