[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 00/78] Strict disable implicit fallthrough
From: |
Daniel P . Berrangé |
Subject: |
Re: [RFC PATCH 00/78] Strict disable implicit fallthrough |
Date: |
Fri, 13 Oct 2023 09:14:24 +0100 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Fri, Oct 13, 2023 at 10:47:04AM +0300, Emmanouil Pitsidianakis wrote:
>
> Main questions this RFC poses
> =============================
>
> - Is this change desirable and net-positive.
Yes, IMHO it is worth standardizing on use of the attribute. The allowed
use of comments was a nice thing by the compiler for coping with pre-existing
code, but using the attribute is best long term for a consistent style.
> - Should the `fallthrough;` pseudo-keyword be defined like in the Linux
> kernel, or use glib's G_GNUC_FALLTHROUGH, or keep the already existing
> QEMU_FALLTHROUGH macro.
As a general rule, if glib provides functionality we aim o use that
and not reinvent the wheel. IOW, we should just use G_GNUC_FALLTHROUGH.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [RFC PATCH 48/78] contrib/vhost-user-scsi: add fallthrough pseudo-keyword, (continued)
- [RFC PATCH 49/78] hw/arm: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 51/78] chardev: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 50/78] hw/audio: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 52/78] hw/char: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 53/78] nbd: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 55/78] hw/display: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 54/78] hw/core: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 56/78] hw/input: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- [RFC PATCH 57/78] hw/net: add fallthrough pseudo-keyword, Emmanouil Pitsidianakis, 2023/10/13
- Re: [RFC PATCH 00/78] Strict disable implicit fallthrough,
Daniel P . Berrangé <=
- Re: [RFC PATCH 00/78] Strict disable implicit fallthrough, BALATON Zoltan, 2023/10/13
- Re: [RFC PATCH 00/78] Strict disable implicit fallthrough, Markus Armbruster, 2023/10/13