Is it possilbe to add pointer to void to unsigned short?
extern void * memcpy(void *, const void *, size_t);
unsigned short min_value;
memcpy(&max_value, validate_cfg + sizeof(min_value), sizeof(max_value));
What is the result of: validate_cfg + sizeof(min_value)
Above is working code but after compiling with upgraded compiler, following error occurs:
illegal type(s): ptr-to-void '+' unit