From: Thomas Hood <jdthood@yahoo.co.uk>
To: alsa-devel@lists.sourceforge.net
Subject: two warnings about variables that "may be used uninitialized in this function"
Date: Thu, 17 Nov 2005 16:16:09 +0100 [thread overview]
Message-ID: <437C9EB9.5050504@yahoo.co.uk> (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 */".
--
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
reply other threads:[~2005-11-17 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437C9EB9.5050504@yahoo.co.uk \
--to=jdthood@yahoo.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox