Re: Ensuring that all the fields of struct predicate are initialized

Collin Funk <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.