From 0dc9be95967a952b8d96ff25fa9ef7fc0235fa81 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Sun, 4 Jul 2021 09:13:29 +0900 Subject: [PATCH] graphics/pdcurs34: Fix a compile warning Fix a compile warning when CONFIG_PDCURSES_MULTITHREAD=n. --- graphics/pdcurs34/nuttx/pdcscrn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/pdcurs34/nuttx/pdcscrn.c b/graphics/pdcurs34/nuttx/pdcscrn.c index bddf38c83..90384f8c2 100644 --- a/graphics/pdcurs34/nuttx/pdcscrn.c +++ b/graphics/pdcurs34/nuttx/pdcscrn.c @@ -207,7 +207,9 @@ static int PDC_scr_open_term(int argc, char **argv) { /* Free the memory ... can't open input */ +#ifdef CONFIG_PDCURSES_MULTITHREAD PDC_ctx_free(); +#endif free(termscreen); } #endif