Skip to contentSkip to conversation

two warnings about variables that "may be used uninitialized in this function"

DISCUSSION Thomas Hood 1 participant 1 message Nov 17, 2005

lore
Share & tools
lore
#0 lore raw

Warning re: alsa-lib-1.0.10/src/mixer/simple_none.c

simple_none.c:1271: warning: 'type' may be used uninitialized in this function

Given that base_len may not always write to *type, there may be something to this warning. I haven't looked at it too closely.

Warning re: alsa-lib-1.0.10/src/pcm/pcm_route.c

pcm_route.c:348: warning: 'src' may be used uninitialized in this function

This seems like a bogus warning since the line in question is:

    const char *src = srcs[srcidx];

Bogus or not, it would be nice if the code were tweaked so that gcc doesn't generate these warnings; or at least if the code were commented with "/* gcc generates bogus warning message about this */".

Signature · 8 lines
Thomas Hood


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click