Skip Menu |

This queue is for tickets about the threads-lite CPAN distribution.

Report information
The Basics
Id: 83475
Status: new
Priority: 0/
Queue: threads-lite

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.032
Fixed in: (no value)



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; }