You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/04 04:20:40 UTC
[incubator-nuttx-apps] 02/02: graphics/pdcurs34: Fix a compile
warning
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 0dc9be95967a952b8d96ff25fa9ef7fc0235fa81
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 09:13:29 2021 +0900
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 bddf38c..90384f8 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