structCharDataOnly{chardata[100];};CharDataOnlyuninitvarFalsePositiveExample(){CharDataOnlytestData;strcpy(testData.data,"string smaller than size");returntestData;}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
error: uninitvar - Uninitialized variable: testData
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/10553