From 872188c156d5aebebac6823be8fa37b3c04a080c Mon Sep 17 00:00:00 2001
From: "Timothy B. Terriberry" <tterribe@xiph.org>
Date: Sun, 6 Dec 2015 17:02:39 -0800
Subject: [PATCH] Fix set-but-not-used variable warning.

When assertions are disabled, nothing else uses header_len.
---
 src/opusfile.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/opusfile.c b/src/opusfile.c
index 7b819bc..cb372e4 100644
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -2147,12 +2147,10 @@ static ogg_int64_t op_get_granulepos(const OggOpusFile *_of,
 /*A small helper to determine if an Ogg page contains data that continues onto
    a subsequent page.*/
 static int op_page_continues(ogg_page *_og){
-  int header_len;
   int nlacing;
-  header_len=_og->header_len;
-  OP_ASSERT(header_len>=27);
+  OP_ASSERT(_og->header_len>=27);
   nlacing=_og->header[26];
-  OP_ASSERT(header_len>=27+nlacing);
+  OP_ASSERT(_og->header_len>=27+nlacing);
   /*This also correctly handles the (unlikely) case of nlacing==0, because
      0!=255.*/
   return _og->header[27+nlacing-1]==255;
-- 
GitLab