summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 15:09:39 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 15:09:39 +0200
commit3b7263be2d0576d96df88659866b4357108030ed (patch)
treef079c5fabc62d350f299f21f9974f3521a19dc96
parent91d3c8e4594070796054395a6a7ae09eab795644 (diff)
downloadrockbox-3b7263be2d0576d96df88659866b4357108030ed.tar.gz
rockbox-3b7263be2d0576d96df88659866b4357108030ed.zip
fix warning in vorbis
Change-Id: I01dd320ac7f4641caaef62363556ca7527dbee19
-rw-r--r--lib/rbcodec/codecs/vorbis.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/vorbis.c b/lib/rbcodec/codecs/vorbis.c
index ca9db9b802..a1ef68b6ba 100644
--- a/lib/rbcodec/codecs/vorbis.c
+++ b/lib/rbcodec/codecs/vorbis.c
@@ -122,7 +122,10 @@ enum codec_status codec_run(void)
122 OggVorbis_File vf; 122 OggVorbis_File vf;
123 ogg_int32_t **pcm; 123 ogg_int32_t **pcm;
124 124
125 int error = CODEC_ERROR; 125 /* mark variable volatile because it can be modified between setjmp() and
126 * longjmp() so the compiler needs to know it should not put it in a register,
127 * see "man longjmp" for details. */
128 volatile int error = CODEC_ERROR;
126 long n; 129 long n;
127 int current_section; 130 int current_section;
128 int previous_section; 131 int previous_section;