mem: fix shadow declaration warning

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.
pull/3963/head
Victor Julien 7 years ago
parent 034555644b
commit 35b88991c3

@ -269,8 +269,8 @@ SC_ATOMIC_EXTERN(unsigned int, engine_stage);
#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; \

Loading…
Cancel
Save