]> granicus.if.org Git - libvpx/commitdiff
Fix false uninitialized warnings (GCC 5+).
authorGeza Lore <gezalore@gmail.com>
Sun, 19 Jun 2016 20:35:01 +0000 (21:35 +0100)
committerGeza Lore <gezalore@gmail.com>
Tue, 21 Jun 2016 11:54:17 +0000 (12:54 +0100)
Change-Id: Ia00c754ddaf22bb7f1dfcd20106db6293bf4b070

test/encode_test_driver.cc

index f4c4c4bb7ec71cd47b3e6fbff1ec364f281ef9d6..cd0b136bba2a298167dfc000599171d4e42a80f2 100644 (file)
@@ -237,11 +237,11 @@ static bool compare_img(const vpx_image_t *img1,
 
 void EncoderTest::MismatchHook(const vpx_image_t* img_enc,
                                const vpx_image_t* img_dec) {
-  int mismatch_row;
-  int mismatch_col;
-  int mismatch_plane;
-  int mismatch_pix_enc;
-  int mismatch_pix_dec;
+  int mismatch_row = 0;
+  int mismatch_col = 0;
+  int mismatch_plane = 0;
+  int mismatch_pix_enc = 0;
+  int mismatch_pix_dec = 0;
 
   ASSERT_FALSE(compare_img(img_enc, img_dec,
                            &mismatch_row, &mismatch_col,