[PATCH 1/1] tools: ftdgrep: use /* fallthrough */ as needed
Tom Rini
trini at konsulko.com
Mon May 11 20:40:45 CEST 2020
On Sun, May 10, 2020 at 10:12:07PM +0900, Masahiro Yamada wrote:
> On Sun, May 10, 2020 at 12:12 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> >
> > GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled.
>
> FYI.
>
> Linux decided to not use /* fallthrough */ any more
> because Clang does not recognize it.
>
> __attribute__((__fallthrough__)) is supported
> by both Clang and recent GCC.
>
>
> Linux is now doing treewide conversion
> from /* fallthrough */ to 'fallthrough;'.
>
> See include/linux/compiler_attributes.h in Linux.
>
> I do not know if U-Boot wants to align with it.
> (up to Tom ?)
A re-sync on the compiler headers again and making use of this sounds
like a good idea, yes.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200511/a0877143/attachment-0001.sig>
More information about the U-Boot
mailing list