imgcodecs: suppress warning at test_avif.cpp

This commit is contained in:
Kumataro 2023-12-29 12:58:24 +09:00
parent 2e3ccb4e8e
commit 46b3a504cf

View File

@ -166,7 +166,7 @@ TEST_P(Imgcodecs_Avif_Image_EncodeDecodeSuite, imencode_imdecode) {
cv::Exception); cv::Exception);
return; return;
} }
bool result; bool result = true;
EXPECT_NO_THROW( EXPECT_NO_THROW(
result = cv::imencode(".avif", img_original, buf, encoding_params_);); result = cv::imencode(".avif", img_original, buf, encoding_params_););
EXPECT_TRUE(result); EXPECT_TRUE(result);