ref: e64e2bb620be87a4933b14d16460b61e32c89177
parent: 4192165ec9ab95bd512d6ca8e33196259c7c79ff
author: Martin Storsjö <[email protected]>
date: Mon Jan 26 10:21:07 EST 2015
Avoid warnings in DecUT_ParseSyntax
--- a/test/decoder/DecUT_ParseSyntax.cpp
+++ b/test/decoder/DecUT_ParseSyntax.cpp
@@ -165,6 +165,7 @@
m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR);
}
CM_RETURN eRet = (CM_RETURN)Initialize (&m_sDecParam, m_pCtx, &m_pWelsTrace->m_sLogCtx);
+ (void) eRet;
}
void DecoderParseSyntaxTest::Uninit() {
@@ -195,9 +196,9 @@
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + sFileName;
- ASSERT_TRUE (pH264File = fopen (filename.c_str(), "rb"));
+ ASSERT_TRUE ((pH264File = fopen (filename.c_str(), "rb")) != NULL);
#else
- ASSERT_TRUE (pH264File = fopen (sFileName, "rb"));
+ ASSERT_TRUE ((pH264File = fopen (sFileName, "rb")) != NULL);
#endif
fseek (pH264File, 0L, SEEK_END);
iFileSize = (int32_t) ftell (pH264File);