From: Benoit Fouet <benoit.fouet@purplelabs.com>
To: alsa-devel@lists.sourceforge.net
Subject: question about implicit decl in pcm_direct.c
Date: Mon, 08 Jan 2007 15:41:21 +0100 [thread overview]
Message-ID: <45A25811.7040603@purplelabs.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
when compiling, i got:
pcm_direct.c:898: warning: implicit declaration of function
`snd_pcm_hw_params_set_format_first'
I don't know how to fix it properly, so i ask if someone knows :)
there is also another warning about a comparison between int and
unsigned int that i "fixed" like in the attached patch.
Cheers,
Ben
[-- Attachment #2: pcm_direct.c.diff --]
[-- Type: text/plain, Size: 523 bytes --]
diff -r 8803655da809 src/pcm/pcm_direct.c
--- a/src/pcm/pcm_direct.c Mon Jan 8 15:07:02 2007 +0100
+++ b/src/pcm/pcm_direct.c Mon Jan 8 15:40:18 2007 +0100
@@ -887,7 +887,7 @@ int snd_pcm_direct_initialize_slave(snd_
snd_pcm_format_t format;
int i;
- for (i = 0; i < sizeof dmix_formats / sizeof dmix_formats[0]; ++i) {
+ for (i = 0; i < (int)(sizeof dmix_formats / sizeof dmix_formats[0]); ++i) {
format = dmix_formats[i];
ret = snd_pcm_hw_params_set_format(spcm, hw_params, format);
if (ret >= 0)
[-- Attachment #3: Type: text/plain, Size: 347 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
next reply other threads:[~2007-01-08 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 14:41 Benoit Fouet [this message]
2007-01-08 15:27 ` question about implicit decl in pcm_direct.c Takashi Iwai
2007-01-08 15:35 ` Benoit Fouet
2007-01-08 15:40 ` Takashi Iwai
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=45A25811.7040603@purplelabs.com \
--to=benoit.fouet@purplelabs.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.