From 6db1aeaeef3726ad07e6d6afc90a3e8c721d3728 Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Sun, 10 Aug 2025 18:30:26 +0200 Subject: [PATCH] package/nanocom: fix build with GCC 14 GCC 14 made implicit function definitions an error and the forward declaration for display_state() was using the wrong name, causing a compilation failure at the call site. Fixes: https://autobuild.buildroot.org/results/ebf/ebf500c48aaa357aaac3a88d87ef8f5c07cd78b6 Signed-off-by: Florian Larysch Signed-off-by: Romain Naour --- .../nanocom/0002-fix-build-with-gcc-14.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/nanocom/0002-fix-build-with-gcc-14.patch diff --git a/package/nanocom/0002-fix-build-with-gcc-14.patch b/package/nanocom/0002-fix-build-with-gcc-14.patch new file mode 100644 index 0000000000..87df33a04d --- /dev/null +++ b/package/nanocom/0002-fix-build-with-gcc-14.patch @@ -0,0 +1,19 @@ +GCC 14 made implicit function definitions an error and the forward declaration +for display_state() was using the wrong name, causing a compilation +failure at the call site. + +Upstream: Submitted to author via email +Signed-off-by: Florian Larysch + +diff -purN old/nanocom.h new/nanocom.h +--- old/nanocom.h 2025-08-10 01:34:12.000284003 +0200 ++++ new/nanocom.h 2025-08-10 01:27:59.545821909 +0200 +@@ -56,7 +56,7 @@ void cleanup_termios(int signal); + void init_stdin(struct termios *sts); + void init_comm(); + void usage( char *str); +-void display_status(); ++void display_state(); + + + /*typedef to represent the current line state