mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix compile warnings
Fix trivial compile warnings.
This commit is contained in:
parent
0ec2247972
commit
76f7af823b
6 changed files with 38 additions and 30 deletions
|
|
@ -77,6 +77,6 @@ struct _snd_mixer {
|
|||
};
|
||||
|
||||
struct _snd_mixer_selem_id {
|
||||
unsigned char name[60];
|
||||
char name[60];
|
||||
unsigned int index;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1270,7 +1270,7 @@ static int simple_event_add(snd_mixer_class_t *class, snd_hctl_elem_t *helem)
|
|||
{
|
||||
const char *name = snd_hctl_elem_get_name(helem);
|
||||
size_t len;
|
||||
selem_ctl_type_t type;
|
||||
selem_ctl_type_t type = CTL_SINGLE; /* to shut up warning */
|
||||
if (snd_hctl_elem_get_interface(helem) != SND_CTL_ELEM_IFACE_MIXER)
|
||||
return 0;
|
||||
if (strcmp(name, "Capture Source") == 0) {
|
||||
|
|
|
|||
|
|
@ -875,7 +875,7 @@ int snd_pcm_direct_initialize_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, str
|
|||
}
|
||||
|
||||
if (buffer_is_not_initialized && params->periods > 0) {
|
||||
int periods = params->periods;
|
||||
unsigned int periods = params->periods;
|
||||
ret = INTERNAL(snd_pcm_hw_params_set_periods_near)(spcm, hw_params, ¶ms->periods, 0);
|
||||
if (ret < 0) {
|
||||
SNDERR("unable to set requested periods");
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ struct slave_params {
|
|||
int buffer_time;
|
||||
snd_pcm_sframes_t period_size;
|
||||
snd_pcm_sframes_t buffer_size;
|
||||
int periods;
|
||||
unsigned int periods;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -4435,7 +4435,7 @@ int snd_seq_remove_events(snd_seq_t *seq, snd_seq_remove_events_t *rmp)
|
|||
ep = seq->obuf;
|
||||
while (ep - seq->obuf < (ssize_t)seq->obufused) {
|
||||
|
||||
ev = ep;
|
||||
ev = (snd_seq_event_t *)ep;
|
||||
len = snd_seq_event_length(ev);
|
||||
|
||||
if (remove_match(rmp, ev)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue