Fix building warnings on Windows
Massively reduce the compile warning on Windows. There should be only 7
warnings I am not sure how to handle.
* 5 warnings are in third_party
* 1 warning is related to our mixed use of C11 and C++ in
gfxstream-generic-apigen which makes clang complain that the '/std:c++17'
compiler argument is not used.
* 1 warning in VkDecoder.cpp. ppObjectTableEntries is used
uninitialized. This file is generated, and I am not familiar with the
codegen enough to fix this warning.
In addition, this fix seems to fix the frame ordering issue for me with
host native Vulkan swapchain.
Test: build on Windows, see only 7 warnings
Change-Id: I45f10d3bacc16df6924610ef84bf42b3ca885111
diff --git a/stream-servers/tests/GLSnapshotPixels_unittest.cpp b/stream-servers/tests/GLSnapshotPixels_unittest.cpp
index 00cd3bd..d75599b 100644
--- a/stream-servers/tests/GLSnapshotPixels_unittest.cpp
+++ b/stream-servers/tests/GLSnapshotPixels_unittest.cpp
@@ -34,9 +34,9 @@
doCheckedSnapshot();
}
-INSTANTIATE_TEST_CASE_P(GLES2SnapshotPixels,
- SnapshotGlUnpackAlignmentTest,
- ::testing::Values(1, 2, 4, 8));
+INSTANTIATE_TEST_SUITE_P(GLES2SnapshotPixels,
+ SnapshotGlUnpackAlignmentTest,
+ ::testing::Values(1, 2, 4, 8));
class SnapshotGlPackAlignmentTest
: public SnapshotSetValueTest<GLuint>,
@@ -54,8 +54,8 @@
doCheckedSnapshot();
}
-INSTANTIATE_TEST_CASE_P(GLES2SnapshotPixels,
- SnapshotGlPackAlignmentTest,
- ::testing::Values(1, 2, 4, 8));
+INSTANTIATE_TEST_SUITE_P(GLES2SnapshotPixels,
+ SnapshotGlPackAlignmentTest,
+ ::testing::Values(1, 2, 4, 8));
} // namespace emugl