On 5/14/24 2:15 PM, James Youngman wrote: > I should explain that recently I've been using other languages which make > it possible to ensure at compile time that things are correctly initialised > and consistently used, and to be direct about it, I miss these things in C.
Newer GCC versions have -fanalyzer and -Wanalyzer-use-of-uninitialized-value which you might be interested in. I pasted an example in bug-gnulib a few days ago [1]. Collin [1] https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00119.html