firewave wrote: That looks like a false positive to me. IMO it should only be reported as (potentially) uninitialized when the value is actually read before anything was assigned. I filed https://trac.cppcheck.net/ticket/14381 about it. https://github.com/llvm/llvm-project/pull/175417