Remix.run Logo
account42 4 days ago

Not an issue if you make use of the tools available:

https://godbolt.org/z/xW14hGeoj

sunshowers 4 days ago | parent [-]

It looks like (a) this is a warning, not an error (why? the code is always wrong) and (b) the warning was added in clang 21 which came out this year. I also suspect that it wouldn't be able to detect complex cases that require interprocedural analysis.

The bug I saw happened a few years ago, and convinced me to switch to Rust where it simply cannot happen.