Avoid clash by adding a leading underscore to the declaration in the
macro. These temporary vars should never clash with valid variables
from the code where they are called from.
#define SCMallocAligned(a, b) ({ \
void *ptrmem = NULL; \
\
- int r = posix_memalign(&ptrmem, (b), (a)); \
- if (r != 0 || ptrmem == NULL) { \
+ int _r = posix_memalign(&ptrmem, (b), (a)); \
+ if (_r != 0 || ptrmem == NULL) { \
if (ptrmem != NULL) { \
free(ptrmem); \
ptrmem = NULL; \