mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
aplay: fix the verbose compilation warnings for latest gcc
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
153d185822
commit
df0b85aa4f
1 changed files with 7 additions and 7 deletions
|
@ -139,7 +139,7 @@ static snd_output_t *log;
|
||||||
static long long max_file_size = 0;
|
static long long max_file_size = 0;
|
||||||
static int max_file_time = 0;
|
static int max_file_time = 0;
|
||||||
static int use_strftime = 0;
|
static int use_strftime = 0;
|
||||||
volatile static int recycle_capture_file = 0;
|
static volatile int recycle_capture_file = 0;
|
||||||
static long term_c_lflag = -1;
|
static long term_c_lflag = -1;
|
||||||
static int dump_hw_params = 0;
|
static int dump_hw_params = 0;
|
||||||
|
|
||||||
|
@ -412,7 +412,7 @@ static void signal_handler(int sig)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* call on SIGUSR1 signal. */
|
/* call on SIGUSR1 signal. */
|
||||||
static void signal_handler_recycle (int sig)
|
static void signal_handler_recycle(int sig ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
/* flag the capture loop to start a new output file */
|
/* flag the capture loop to start a new output file */
|
||||||
recycle_capture_file = 1;
|
recycle_capture_file = 1;
|
||||||
|
@ -1512,7 +1512,7 @@ static void set_params(void)
|
||||||
error(_("snd_pcm_mmap_begin problem: %s"), snd_strerror(err));
|
error(_("snd_pcm_mmap_begin problem: %s"), snd_strerror(err));
|
||||||
prg_exit(EXIT_FAILURE);
|
prg_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
for (i = 0; i < hwparams.channels; i++)
|
for (i = 0; i < (int)hwparams.channels; i++)
|
||||||
fprintf(stderr, "mmap_area[%i] = %p,%u,%u (%u)\n", i, areas[i].addr, areas[i].first, areas[i].step, snd_pcm_format_physical_width(hwparams.format));
|
fprintf(stderr, "mmap_area[%i] = %p,%u,%u (%u)\n", i, areas[i].addr, areas[i].first, areas[i].step, snd_pcm_format_physical_width(hwparams.format));
|
||||||
/* not required, but for sure */
|
/* not required, but for sure */
|
||||||
snd_pcm_mmap_commit(handle, offset, 0);
|
snd_pcm_mmap_commit(handle, offset, 0);
|
||||||
|
@ -1895,7 +1895,7 @@ static void compute_max_peak(u_char *data, size_t samples)
|
||||||
else
|
else
|
||||||
val = be32toh(*valp);
|
val = be32toh(*valp);
|
||||||
val ^= mask;
|
val ^= mask;
|
||||||
if (val == 0x80000000U)
|
if ((unsigned int)val == 0x80000000U)
|
||||||
val = 0x7fffffff;
|
val = 0x7fffffff;
|
||||||
else
|
else
|
||||||
val = abs(val);
|
val = abs(val);
|
||||||
|
@ -2090,7 +2090,7 @@ static u_char *remap_data(u_char *data, size_t count)
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static u_char **remap_datav(u_char **data, size_t count)
|
static u_char **remap_datav(u_char **data, size_t count ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
static u_char **tmp;
|
static u_char **tmp;
|
||||||
unsigned int ch;
|
unsigned int ch;
|
||||||
|
@ -2869,7 +2869,7 @@ static void playback_go(int fd, size_t loaded, off_t count, int rtype, char *nam
|
||||||
while (written < count && !in_aborting) {
|
while (written < count && !in_aborting) {
|
||||||
do {
|
do {
|
||||||
c = count - written;
|
c = count - written;
|
||||||
if (c > chunk_bytes)
|
if (c > (off_t)chunk_bytes)
|
||||||
c = chunk_bytes;
|
c = chunk_bytes;
|
||||||
|
|
||||||
/* c < l, there is more data loaded
|
/* c < l, there is more data loaded
|
||||||
|
@ -3300,7 +3300,7 @@ static void capture(char *orig_name)
|
||||||
if (read != f)
|
if (read != f)
|
||||||
in_aborting = 1;
|
in_aborting = 1;
|
||||||
save = read * bits_per_frame / 8;
|
save = read * bits_per_frame / 8;
|
||||||
if (xwrite(fd, audiobuf, save) != save) {
|
if (xwrite(fd, audiobuf, save) != (ssize_t)save) {
|
||||||
perror(name);
|
perror(name);
|
||||||
in_aborting = 1;
|
in_aborting = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue