From 3b7263be2d0576d96df88659866b4357108030ed Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 17 Sep 2017 15:09:39 +0200 Subject: [PATCH] fix warning in vorbis Change-Id: I01dd320ac7f4641caaef62363556ca7527dbee19 --- lib/rbcodec/codecs/vorbis.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) OggVorbis_File vf; ogg_int32_t **pcm; - int error = CODEC_ERROR; + /* mark variable volatile because it can be modified between setjmp() and + * longjmp() so the compiler needs to know it should not put it in a register, + * see "man longjmp" for details. */ + volatile int error = CODEC_ERROR; long n; int current_section; int previous_section;