diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-03-31 16:16:05 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-04-04 09:05:47 +0900 |
commit | d964cf1389766b2836dcbe190a62045dc075b228 (patch) | |
tree | 075601af96b2afe898afd064a446364865e9b04f | |
parent | d6646b50d1eb383f41c0b6ed9733667bf5a89c11 (diff) | |
download | libdrm-d964cf1389766b2836dcbe190a62045dc075b228.tar.gz libdrm-d964cf1389766b2836dcbe190a62045dc075b228.tar.bz2 libdrm-d964cf1389766b2836dcbe190a62045dc075b228.zip |
ipptest: fix build warnings
This patch removes unused variable set and wrong type build
warnings.
Change-Id: Ia8b18b2df8e96c0d48d1ac8481817a8b1b72e628
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | tests/ipptest/fimctest.c | 6 | ||||
-rw-r--r-- | tests/rottest/rottest.c | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/ipptest/fimctest.c b/tests/ipptest/fimctest.c index 4b7417e6..0c617f8e 100644 --- a/tests/ipptest/fimctest.c +++ b/tests/ipptest/fimctest.c @@ -371,7 +371,6 @@ int main(int argc, char **argv) int display = IPP_CMD_M2M_FILE; int test_vsync = 0; const char *module = "exynos"; - char *modeset = NULL; int i, count = 0; struct connector con_args[2]; @@ -403,7 +402,6 @@ int main(int argc, char **argv) sscanf(optarg, "%d", &operations); break; case 's': - modeset = strdup(optarg); con_args[count].crtc = -1; if (sscanf(optarg, "%d:%64s", &con_args[count].id, @@ -489,11 +487,11 @@ int main(int argc, char **argv) if (display == IPP_CMD_M2M_FILE) { for (i = 0; i < MAX_LOOP && usec[i] != 0; i++) { - printf("[%d] : %d\n", i + 1, usec[i]); + printf("[%d] : %ld\n", i + 1, usec[i]); sum += usec[i]; } printf("fimc : result files are in %s\n", RESULT_PATH); - printf("avg : [%d]\n", (i ? sum / i : 0)); + printf("avg : [%ld]\n", (i ? sum / i : 0)); } getchar(); } diff --git a/tests/rottest/rottest.c b/tests/rottest/rottest.c index edcbf5d8..5ac40d83 100644 --- a/tests/rottest/rottest.c +++ b/tests/rottest/rottest.c @@ -443,11 +443,11 @@ int main(int argc, char **argv) rotator_1_N_set_mode(con_args, count, test_vsync, usec); for (i = 0; i < MAX_LOOP * MAX_BUF; i++) { - printf("[%d] : %d\n", i + 1, usec[i]); + printf("[%d] : %ld\n", i + 1, usec[i]); sum += usec[i]; } printf("rotator : result files are in %s\n", RESULT_PATH); - printf("avg : [%d]\n", sum / MAX_LOOP); + printf("avg : [%ld]\n", sum / MAX_LOOP); getchar(); } |