• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/vaapi


Commit MetaInfo

Revisiónf5369347a4b033e08c4e94d2e5433e7c5963a7e8 (tree)
Tiempo2017-07-28 10:59:25
AutorKelly Ledford <kelly.ledford@inte...>
CommiterXiang, Haihao

Log Message

test: fix GCC 7.1.1 warnings/errors

Fixes #236: add explicit braces to avoid 'ambiguous else' warning.

Signed-off-by: Kelly Ledford <kelly.ledford@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/test/i965_config_test.cpp
+++ b/test/i965_config_test.cpp
@@ -58,6 +58,7 @@ TEST_P(I965ConfigTest, Create)
5858
5959 EXPECT_STATUS_EQ(expect, actual);
6060
61- if (actual != VA_STATUS_SUCCESS)
61+ if (actual != VA_STATUS_SUCCESS) {
6262 EXPECT_INVALID_ID(config);
63+ }
6364 }
--- a/test/i965_test_environment.cpp
+++ b/test/i965_test_environment.cpp
@@ -82,8 +82,9 @@ void I965TestEnvironment::SetUp()
8282
8383 void I965TestEnvironment::TearDown()
8484 {
85- if (m_vaDisplay)
85+ if (m_vaDisplay) {
8686 EXPECT_STATUS(vaTerminate(m_vaDisplay));
87+ }
8788
8889 if (m_handle >= 0)
8990 close(m_handle);
--- a/test/i965_test_fixture.cpp
+++ b/test/i965_test_fixture.cpp
@@ -44,12 +44,13 @@ Surfaces I965TestFixture::createSurfaces(int w, int h, int format, size_t count,
4444 } else {
4545 VADriverContextP ctx(*this);
4646 EXPECT_PTR(ctx);
47- if (ctx)
47+ if (ctx) {
4848 EXPECT_STATUS(
4949 ctx->vtable->vaCreateSurfaces2(
5050 *this, format, w, h, surfaces.data(), surfaces.size(),
5151 const_cast<VASurfaceAttrib*>(attributes.data()),
5252 attributes.size()));
53+ }
5354 }
5455
5556 for (size_t i(0); i < count; ++i) {