Fix: Eliminate warnings
Consider warnings as errors and correct them.
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Change-Id: I2d777ee56b21750966b75147be6c4eb73229043f
diff --git a/components/app/remote-test-runner/remote_test_runner.cpp b/components/app/remote-test-runner/remote_test_runner.cpp
index 66d81f6..04c3113 100644
--- a/components/app/remote-test-runner/remote_test_runner.cpp
+++ b/components/app/remote-test-runner/remote_test_runner.cpp
@@ -121,7 +121,7 @@
void remote_test_runner::output_list(const struct test_summary &summary,
const std::vector<struct test_result> &results)
{
- for (int i = 0; i < results.size(); ++i) {
+ for (size_t i = 0; i < results.size(); ++i) {
printf("TEST(%s, %s)\n", results[i].group, results[i].name);
}
@@ -132,7 +132,7 @@
void remote_test_runner::output_results(const struct test_summary &summary,
const std::vector<struct test_result> &results)
{
- for (int i = 0; i < results.size(); ++i) {
+ for (size_t i = 0; i < results.size(); ++i) {
printf("TEST(%s, %s) ", results[i].group, results[i].name);