1
0
Fork 0

CO_storageEeprom: static analysis: declaration of 'i' hides a local variable (multiple declaration) [MISRA 2012 Rule 5.3, required]

This commit is contained in:
temi54c1l8 2024-06-27 14:06:14 +02:00
parent 1c4a5f6877
commit 2e4b8890ad

View file

@ -232,8 +232,8 @@ void CO_storageEeprom_auto_process(CO_storage_t *storage, bool_t saveAll) {
}
/* loop through entries */
for (uint8_t i = 0; i < storage->entriesCount; i++) {
CO_storage_entry_t *entry = &storage->entries[i];
for (uint8_t n = 0; n < storage->entriesCount; n++) {
CO_storage_entry_t *entry = &storage->entries[n];
if ((entry->attr & (uint8_t)CO_storage_auto) == 0U) {
continue;