From 0bf9eae25ce67937b4b9de89f616a31e17c6327e Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Sun, 10 Aug 2025 18:30:27 +0200 Subject: [PATCH] package/nanocom: fix build with GCC 15 GCC 15 switched to C23 by default, which made "void foo()" equivalent to "void foo(void)". This causes a build error because init_comm() doesn't actually take any arguments. Signed-off-by: Florian Larysch Signed-off-by: Romain Naour --- .../nanocom/0003-fix-build-with-gcc-15.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/nanocom/0003-fix-build-with-gcc-15.patch diff --git a/package/nanocom/0003-fix-build-with-gcc-15.patch b/package/nanocom/0003-fix-build-with-gcc-15.patch new file mode 100644 index 0000000000..59a2095337 --- /dev/null +++ b/package/nanocom/0003-fix-build-with-gcc-15.patch @@ -0,0 +1,19 @@ +GCC 15 switched to C23 by default, which made "void foo()" equivalent to +"void foo(void)". This causes a build error because init_comm() doesn't +actually take any arguments. + +Upstream: Submitted to author via email +Signed-off-by: Florian Larysch + +diff -purN old/nanocom.c new/nanocom.c +--- old/nanocom.c 2025-08-10 01:34:12.000284003 +0200 ++++ new/nanocom.c 2025-08-10 01:31:05.639050630 +0200 +@@ -329,7 +329,7 @@ int main(int argc, char *argv[]) { + memcpy(&pots, &pts, sizeof(pots)); + + /*setup serial port with new settings*/ +- init_comm(&pts); ++ init_comm(); + + fprintf(stderr,"Press CTRL+T for menu options"); + display_state();