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> | 2019-03-15 18:32:18 +0900 |
commit | 0d57cd7e7db4cade836da1da2dc4a206fb492fe5 (patch) | |
tree | 03b930e86fc2796d328e26c900a909d74db62f1d | |
parent | 0c43fe5ee77351fb786e69275bb87058ec9af409 (diff) | |
download | libdrm-0d57cd7e7db4cade836da1da2dc4a206fb492fe5.tar.gz libdrm-0d57cd7e7db4cade836da1da2dc4a206fb492fe5.tar.bz2 libdrm-0d57cd7e7db4cade836da1da2dc4a206fb492fe5.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 4cbb0be2..85d7f586 100644 --- a/tests/ipptest/fimctest.c +++ b/tests/ipptest/fimctest.c @@ -369,7 +369,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]; @@ -401,7 +400,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, @@ -487,11 +485,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 7d8e1797..61231f31 100644 --- a/tests/rottest/rottest.c +++ b/tests/rottest/rottest.c @@ -441,11 +441,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(); } |