This fixes warnings when built with e.g. gcc 5.4.
Showing the changes to test/api/decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1017,18 +1017,18 @@ TEST_F (DecodeParseAPI, ParseOnly_SpecStatistics) { · 1016 unmodified lines | ||
| 1017 | 1017 | rv = decoder_->GetOption (DECODER_OPTION_LEVEL, &uiLevel); |
| 1018 | 1018 | ASSERT_TRUE (rv == 0); |
| 1019 | 1019 | |
| 1020 | − ASSERT_EQ (sDecStat.uiWidth, p.width); | |
| 1021 | − ASSERT_EQ (sDecStat.uiHeight, p.height); | |
| 1022 | − ASSERT_EQ (sDecStat.uiResolutionChangeTimes, (i + 1)); | |
| 1020 | + ASSERT_EQ (sDecStat.uiWidth, (unsigned int) p.width); | |
| 1021 | + ASSERT_EQ (sDecStat.uiHeight, (unsigned int) p.height); | |
| 1022 | + ASSERT_EQ (sDecStat.uiResolutionChangeTimes, (unsigned int) (i + 1)); | |
| 1023 | 1023 | EXPECT_EQ (sDecStat.iCurrentActiveSpsId, 0); |
| 1024 | 1024 | EXPECT_EQ (sDecStat.iCurrentActivePpsId, 0); |
| 1025 | − ASSERT_EQ (sDecStat.uiDecodedFrameCount, iTotalFrmCnt); | |
| 1025 | + ASSERT_EQ (sDecStat.uiDecodedFrameCount, (unsigned int) iTotalFrmCnt); | |
| 1026 | 1026 | ASSERT_EQ (sDecStat.uiProfile, uiProfile); |
| 1027 | 1027 | ASSERT_EQ (sDecStat.uiLevel, uiLevel); |
| 1028 | 1028 | EXPECT_TRUE (sDecStat.fActualAverageFrameSpeedInMs != 0.); |
| 1029 | 1029 | EXPECT_TRUE (sDecStat.fAverageFrameSpeedInMs != 0.); |
| 1030 | 1030 | EXPECT_TRUE (sDecStat.iAvgLumaQp != 0); |
| 1031 | − EXPECT_EQ (sDecStat.uiIDRCorrectNum, (i + 1)); | |
| 1031 | + EXPECT_EQ (sDecStat.uiIDRCorrectNum, (unsigned int) (i + 1)); | |
| 1032 | 1032 | } |
| 1033 | 1033 | //set next width & height |
| 1034 | 1034 | p.width += 16; |