* two warnings about variables that "may be used uninitialized in this function"
@ 2005-11-17 15:16 Thomas Hood
0 siblings, 0 replies; only message in thread
From: Thomas Hood @ 2005-11-17 15:16 UTC (permalink / raw)
To: alsa-devel
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 */".
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-17 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 15:16 two warnings about variables that "may be used uninitialized in this function" Thomas Hood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox