Subject: | Possibly undefined behaviour |
When compiling 0.032 with GCC 4.7.2, I got this warning:
lib/threads/lite.xs: In function 'S_return_elements':
lib/threads/lite.xs:26:2: warning: 'count' may be used uninitialized in
this function [-Wmaybe-uninitialized]
and indeed if ucontext differs from G_SCALAR and G_ARRAY, then it can
happen:
int S_return_elements(pTHX_ AV* values, U32 context) {
dSP;
UV count;
if (context == G_SCALAR) {
[...]
}
else if (context == G_ARRAY) {
[...]
}
PUTBACK;
return count;
}