OSDN Git Service

Use enum's type name to fix implicit conversion
authorVictor Toso <me@victortoso.com>
Tue, 19 Dec 2017 07:07:40 +0000 (08:07 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 10 Jan 2018 01:12:43 +0000 (09:12 +0800)
commit8f2071a366f042c369471ed1033e5e8a24a634b5
tree4ce36e049acb852d788fd97baac929e9a165057b
parent3443434d88ad116cd6decebccfab265679980bc4
Use enum's type name to fix implicit conversion

The implicit conversion happens because there is another enum defined with
the name GEN9_HEVC_ENC_SURFACE_TYPE introduced in the same commit 455351f9

To avoid the several warnings below (by clang), let's use the enum's
defined type name.

gen9_hevc_encoder.c:5754:34: warning: implicit conversion from
enumeration type 'enum _GEN9_HEVC_ENC_SURFACE_TYPE' to different
enumeration type 'enum GEN9_HEVC_ENC_SURFACE_TYPE' [-Wenum-conversion]
     HEVC_ENC_SURFACE_Y_2X, bti_idx,
     ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Victor Toso <victortoso@redhat.com>
src/gen9_hevc_encoder.c