[Impeller] Fix unused-result warnings. (flutter/engine#35879)

This commit is contained in:
moko256
2022-09-04 03:14:03 +09:00
committed by GitHub
parent 1a7ead87c4
commit 0f70cd7e1e
2 changed files with 0 additions and 5 deletions

View File

@@ -134,7 +134,6 @@ TEST_P(AiksTest, CanRenderTiledTexture) {
0, 0, 0, 1 //
};
std::string label = "##1";
label.c_str();
for (int i = 0; i < 4; i++) {
ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]),
4, NULL, NULL, "%.2f", 0);
@@ -323,7 +322,6 @@ TEST_P(AiksTest, CanRenderLinearGradient) {
0, 0, 0, 1 //
};
std::string label = "##1";
label.c_str();
for (int i = 0; i < 4; i++) {
ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]),
4, NULL, NULL, "%.2f", 0);
@@ -376,7 +374,6 @@ TEST_P(AiksTest, CanRenderRadialGradient) {
0, 0, 0, 1 //
};
std::string label = "##1";
label.c_str();
for (int i = 0; i < 4; i++) {
ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]),
4, NULL, NULL, "%.2f", 0);
@@ -429,7 +426,6 @@ TEST_P(AiksTest, CanRenderSweepGradient) {
0, 0, 0, 1 //
};
std::string label = "##1";
label.c_str();
for (int i = 0; i < 4; i++) {
ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]),
4, NULL, NULL, "%.2f", 0);

View File

@@ -1607,7 +1607,6 @@ TEST_P(EntityTest, ColorMatrixFilterEditable) {
ImGui::Begin("Color Matrix", nullptr, ImGuiWindowFlags_AlwaysAutoResize);
{
std::string label = "##1";
label.c_str();
for (int i = 0; i < 20; i += 5) {
ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float,
&(color_matrix.array[i]), 5, nullptr, nullptr,