static int func() { int total_received = 0; int ret; do { if (req) { ret = total_received; break; } } while (true); return ret; }
gives
error: Uninitialized variable: ret [uninitvar]
version 2.3
Thanks, this reproduces for me. Ticket is here: https://trac.cppcheck.net/ticket/10166
Log in to post a comment.
gives
version 2.3
Thanks, this reproduces for me. Ticket is here: https://trac.cppcheck.net/ticket/10166