Narendrabrsoft / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

convert_test.cc:1750:1: error: unused variable 'max_diff' #530

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
third_party/libyuv/files/unit_test/convert_test.cc:1750:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
TESTPLANARTOE(I420, 2, 2, ARGB, 4, ABGR, 4)
^
third_party/libyuv/files/unit_test/convert_test.cc:1741:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1750:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1743:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1750:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1745:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1750:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1747:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1751:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
TESTPLANARTOE(J420, 2, 2, ARGB, 4, ARGB, 4)
^
third_party/libyuv/files/unit_test/convert_test.cc:1741:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1751:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1743:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1751:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1745:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1751:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1747:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1752:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
TESTPLANARTOE(J420, 2, 2, ABGR, 4, ARGB, 4)
^
third_party/libyuv/files/unit_test/convert_test.cc:1741:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1752:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1743:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1752:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1745:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1752:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1747:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1753:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
TESTPLANARTOE(H420, 2, 2, ARGB, 4, ARGB, 4)
^
third_party/libyuv/files/unit_test/convert_test.cc:1741:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1753:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1743:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1753:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1745:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1753:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1747:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1754:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
TESTPLANARTOE(H420, 2, 2, ABGR, 4, ARGB, 4)
^
third_party/libyuv/files/unit_test/convert_test.cc:1741:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1754:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1743:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
third_party/libyuv/files/unit_test/convert_test.cc:1754:1: error: unused 
variable 'max_diff' [-Werror,-Wunused-variable]
third_party/libyuv/files/unit_test/convert_test.cc:1745:5: note: expanded from 
macro 'TESTPLANARTOE'
    TESTPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B,             \
    ^
third_party/libyuv/files/unit_test/convert_test.cc:1712:7: note: expanded from 
macro 'TESTPLANARTOEI'
  int max_diff = 0;                                                            \
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Original issue reported on code.google.com by fbarch...@google.com on 9 Dec 2015 at 7:54

GoogleCodeExporter commented 8 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/libyuv/libyuv.git/+/8bca9fc178cfb8524268f90a2bfc417e103f9960

commit 8bca9fc178cfb8524268f90a2bfc417e103f9960
Author: Frank Barchard <fbarchard@google.com>
Date: Fri Dec 11 02:39:36 2015

remove unused var in a test
remove include from unittest.cc that is already done by unittest.h

TBR=harryjin@google.com
BUG=libyuv:530

Review URL: https://codereview.chromium.org/1513263004 .

[modify] 
http://crrev.com/8bca9fc178cfb8524268f90a2bfc417e103f9960/README.chromium
[modify] 
http://crrev.com/8bca9fc178cfb8524268f90a2bfc417e103f9960/include/libyuv/version
.h
[modify] 
http://crrev.com/8bca9fc178cfb8524268f90a2bfc417e103f9960/unit_test/convert_test
.cc
[modify] 
http://crrev.com/8bca9fc178cfb8524268f90a2bfc417e103f9960/unit_test/unit_test.cc

Original comment by bugdroid1@chromium.org on 11 Dec 2015 at 2:40

GoogleCodeExporter commented 8 years ago

Original comment by fbarch...@chromium.org on 15 Dec 2015 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by fbarch...@google.com on 15 Dec 2015 at 4:14