From 9b156ef57bf9a5eeae89b3222bf6b321faa2471f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 19 Oct 2020 11:56:17 -0700 Subject: [PATCH] freedreno/fdperf: Silence a compiler warning about current counter. It seems like selecting the first here is a fine choice if we can't find the counter. Part-of: --- src/freedreno/perfcntrs/fdperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/perfcntrs/fdperf.c b/src/freedreno/perfcntrs/fdperf.c index 44d9d837035..25d13ae78b3 100644 --- a/src/freedreno/perfcntrs/fdperf.c +++ b/src/freedreno/perfcntrs/fdperf.c @@ -737,7 +737,7 @@ counter_dialog(void) { WINDOW *dialog; struct counter_group *group; - int cnt, current = 0, scroll; + int cnt = 0, current = 0, scroll; /* figure out dialog size: */ int dh = h/2;