On Fri, May 08, 2026 at 05:25:24PM +0200, Alejandro Colomar via Mutt-dev wrote:
> Here's my experiment compiling exactly your code with GCC 15: $ gcc --version gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 This is on Ubuntu LTS 24.04. Availability != ubiquity. I expect gcc 15 won't be in widespread use for years yet. I also expect, but do not know for a fact, that major distros are compiling their software with the same compiler they are shipping in the distro. Also, I know of no projects that use -O3 (mutt certainly doesn't), typically because it complicates debugging (even more than -O2 already does) and IIRC can in some circumstances produce incorrect/unexpected behavior. This may (or may not) be because such programs depend on undefined behavior, but a lot of real-world code has such things, even as written by seasoned pros. ^_^ Performance aside, IMO you saved a handful of characters at the expense of a non-standard wrapper around an infrequently-used interface, adding an extra level of indirection, sacrificing a degree of clarity for a tiny increase in succinctness. I don't think that's a good trade. As I said elsewhere, the lack of clarity of the cases was the main reason I raised this issue in the first place (though the potential for segfault was also an important factor, now moot). -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
