> cppcheck --enable=warning test.cxx
Checking test.cxx ...
test.cxx:3:3: warning: Member variable 'Foo::i' is not initialized in the constructor. [uninitMemberVar]
Foo() = delete;
^
Moving the = default into the declaration makes it go away.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another false positive uninitMemberVar in a deleted(!) constructor:
Moving the
= default
into the declaration makes it go away.Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/13442