mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-05 04:06:34 -05:00
pcm route: suppress false positive warning for gcc 8+
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
bd0ce670c2
commit
509e77c869
1 changed files with 9 additions and 1 deletions
|
|
@ -325,7 +325,12 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
|
|||
#endif
|
||||
zero_end:
|
||||
for (srcidx = 0; srcidx < nsrcs; ++srcidx) {
|
||||
const char *src = srcs[srcidx];
|
||||
const char *src;
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
src = srcs[srcidx];
|
||||
|
||||
/* Get sample */
|
||||
goto *get32;
|
||||
|
|
@ -333,6 +338,9 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
|
|||
#include "plugin_ops.h"
|
||||
#undef GET32_END
|
||||
after_get:
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
/* Sum */
|
||||
goto *add;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue