vp9_mcomp.c static analysis issues
authorJim Bankoski <jimbankoski@google.com>
Tue, 11 Feb 2014 01:03:41 +0000 (17:03 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Wed, 12 Feb 2014 19:54:47 +0000 (11:54 -0800)
Change-Id: I8c0023e3f03297993431e21158ee3821af75f82d

vp9/encoder/vp9_mcomp.c

index 198e11c..d761a85 100644 (file)
@@ -349,6 +349,10 @@ int vp9_find_best_sub_pixel_tree(const MACROBLOCK *x,
     tr = br;
     tc = bc;
   }
+  // These lines insure static analysis doesn't warn that
+  // tr and tc aren't used after the above point.
+  (void) tr;
+  (void) tc;
 
   bestmv->row = br;
   bestmv->col = bc;
@@ -452,6 +456,11 @@ int vp9_find_best_sub_pixel_comp_tree(const MACROBLOCK *x,
     tr = br;
     tc = bc;
   }
+  // These lines insure static analysis doesn't warn that
+  // tr and tc aren't used after the above point.
+  (void) tr;
+  (void) tc;
+
   bestmv->row = br;
   bestmv->col = bc;