Fix Error: nxtext_popup.c:250:20: error: unused function 'nxpu_puts'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
393df6762e
commit
92d38a3bb1
@ -139,6 +139,7 @@ static inline int nxpu_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size)
|
|||||||
printf("nxpu_setsize: nx_setsize failed: %d\n", errno);
|
printf("nxpu_setsize: nx_setsize failed: %d\n", errno);
|
||||||
g_exitcode = NXEXIT_NXSETSIZE;
|
g_exitcode = NXEXIT_NXSETSIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +147,8 @@ static inline int nxpu_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size)
|
|||||||
* Name: nxpu_setposition
|
* Name: nxpu_setposition
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static inline int nxpu_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos)
|
static inline int nxpu_setposition(NXWINDOW hwnd,
|
||||||
|
FAR struct nxgl_point_s *pos)
|
||||||
{
|
{
|
||||||
int ret = nx_setposition(hwnd, pos);
|
int ret = nx_setposition(hwnd, pos);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@ -154,6 +156,7 @@ static inline int nxpu_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos)
|
|||||||
printf("nxpu_setposition: nx_setposition failed: %d\n", errno);
|
printf("nxpu_setposition: nx_setposition failed: %d\n", errno);
|
||||||
g_exitcode = NXEXIT_NXSETPOSITION;
|
g_exitcode = NXEXIT_NXSETPOSITION;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,6 +250,7 @@ static void nxpu_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos,
|
|||||||
* Name: nxpu_puts
|
* Name: nxpu_puts
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_NX_KBD
|
||||||
static inline void nxpu_puts(NXWINDOW hwnd, FAR struct nxtext_state_s *st,
|
static inline void nxpu_puts(NXWINDOW hwnd, FAR struct nxtext_state_s *st,
|
||||||
uint8_t nch, FAR const uint8_t *ch)
|
uint8_t nch, FAR const uint8_t *ch)
|
||||||
{
|
{
|
||||||
@ -256,6 +260,7 @@ static inline void nxpu_puts(NXWINDOW hwnd, FAR struct nxtext_state_s *st,
|
|||||||
nxtext_putc(hwnd, st, g_puhfont, *ch++);
|
nxtext_putc(hwnd, st, g_puhfont, *ch++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: nxpu_kbdin
|
* Name: nxpu_kbdin
|
||||||
@ -392,5 +397,6 @@ int nxpu_close(NXWINDOW hwnd)
|
|||||||
g_exitcode = NXEXIT_NXCLOSEWINDOW;
|
g_exitcode = NXEXIT_NXCLOSEWINDOW;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user