From: Changqing Li <[email protected]>

Fix lib32-tnftp do_compile failure with gcc-14:
../../tnftp-20230507/libedit/terminal.c:597:56: error: passing argument 2 of 
'terminal_overwrite' from incompatible pointer type 
[-Wincompatible-pointer-types]
  597 |                                 terminal_overwrite(el, &el->el_display[
      |                                                        ^~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        wint_t * {aka 
unsigned int *}
  598 |                                     el->el_cursor.v][el->el_cursor.h],
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../tnftp-20230507/libedit/refresh.c:114:38: error: initialization of 
'wchar_t *' {aka 'long int *'} from incompatible pointer type 'wint_t *' {aka 
'unsigned int *'} [-Wincompatible-pointer-types]
  114 |                 wchar_t *firstline = el->el_vdisplay[0];

Signed-off-by: Changqing Li <[email protected]>
---
 meta-networking/recipes-support/tnftp/tnftp_20230507.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-support/tnftp/tnftp_20230507.bb 
b/meta-networking/recipes-support/tnftp/tnftp_20230507.bb
index bdd9759f2..da4466794 100644
--- a/meta-networking/recipes-support/tnftp/tnftp_20230507.bb
+++ b/meta-networking/recipes-support/tnftp/tnftp_20230507.bb
@@ -36,3 +36,6 @@ PACKAGECONFIG ?= "openssl \
 "
 PACKAGECONFIG[openssl] = "--enable-ssl, --disable-ssl --with-ssl=no, openssl"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
+#fix lib32-tnftp do_compile error with gcc-14
+CFLAGS += "-Wno-error=incompatible-pointer-types"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110889): 
https://lists.openembedded.org/g/openembedded-devel/message/110889
Mute This Topic: https://lists.openembedded.org/mt/106648104/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to