On Mon, Jun 22, 2026 at 04:03:53PM -0400, Sean McBride wrote:
> #if (defined(GCC_VERSION) && GCC_VERSION>=7000000) || blahblah)
> #define POSTFIX_FALLTHROUGH __attribute__((fallthrough));
> #else
> #define POSTFIX_FALLTHROUGH /* FALLTHROUGH */
> #endif
The 20/20 hindsight gain would be quite modest. Note that the legacy
form of the annotation is already used in many cases.
$ git grep -hi fallthr -- src | perl -pe 's/\s+//' | sort | uniq -c
41 /* FALLTHROUGH */
1 /* FALLTHROUGH: do not remove, see comment above. */
Instrumenting this portably across various still supported legacy
systems (SunOS 5.x, ...), may require some care.
--
Viktor. 🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]