TT#111150 Do not perform arithmetic on void pointers

This is illegal in standard C, even though it is allowed as a GNU C
extension.

Change-Id: I490d36688dc6874befda250aeda480109b134b35
Warned-by: gcc, cppcheck
mr9.4.1
Guillem Jover 4 years ago
parent 956706fd90
commit 8d75175a6a

@ -262,7 +262,7 @@ found_member:
}
type = member->type;
element = element + member->memb_offset;
element = (char *)element + member->memb_offset;
if (element && (member->flags & ATF_POINTER))
element = *((void **) element);
if (!element)

Loading…
Cancel
Save