From c742373efc1634aab01390691b8384887ad4cb4d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 13 Mar 2020 11:35:03 -0600 Subject: [PATCH] apps/system/cle: Fix error when compiling with C89 compiler. --- system/cle/cle.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/cle/cle.c b/system/cle/cle.c index 42272f334..f51569956 100644 --- a/system/cle/cle.c +++ b/system/cle/cle.c @@ -655,7 +655,8 @@ static bool cle_opentext(FAR struct cle_s *priv, uint16_t pos, * ****************************************************************************/ -static void cle_closetext(FAR struct cle_s *priv, uint16_t pos, uint16_t size) +static void cle_closetext(FAR struct cle_s *priv, uint16_t pos, + uint16_t size) { int i; @@ -798,6 +799,9 @@ static int cle_editloop(FAR struct cle_s *priv) for (; ; ) { +#if 1 /* Perhaps here should be a config switch */ + char state = 0; +#endif int ch; /* Make sure that the display reflects the current state */ @@ -812,8 +816,6 @@ static int cle_editloop(FAR struct cle_s *priv) * home/end, del */ - char state = 0; - /* loop till we have a ch */ for (; ; )