mirror of
https://github.com/openwrt/packages.git
synced 2025-07-25 21:42:31 +00:00
Remove upstreamed GCC14 patch. Backport GCC15 patch. Signed-off-by: Rosen Penev <rosenp@gmail.com>
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From c69eafaa34ffec88adbfa6d4573b92c57119d6c4 Mon Sep 17 00:00:00 2001
|
|
From: Stefan de Konink <stefan@konink.de>
|
|
Date: Tue, 8 Jul 2025 20:02:53 +0200
|
|
Subject: [PATCH] =?UTF-8?q?Fix=20initializer-string=20for=20array=20of=20?=
|
|
=?UTF-8?q?=E2=80=98char=E2=80=99=20truncates=20NUL=20terminator=20but=20d?=
|
|
=?UTF-8?q?estination=20lacks=20=E2=80=98nonstring=E2=80=99=20attribute?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
ais_charset.c | 8 +++++++-
|
|
interactive.c | 2 +-
|
|
2 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
--- a/ais_charset.c
|
|
+++ b/ais_charset.c
|
|
@@ -1,3 +1,9 @@
|
|
#include "ais_charset.h"
|
|
|
|
-char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";
|
|
+char ais_charset[64] = {
|
|
+ '@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',
|
|
+ 'P','Q','R','S','T','U','V','W','X','Y','Z','[','\\',']','^','_',
|
|
+ ' ','!','"','#','$','%','&','\'','(',')','*','+',
|
|
+ ',', '-', '.', '/', '0','1','2','3','4','5','6','7','8','9',
|
|
+ ':',';','<','=','>','?'
|
|
+};
|
|
--- a/interactive.c
|
|
+++ b/interactive.c
|
|
@@ -140,7 +140,7 @@ void interactiveShowData(void) {
|
|
static bool need_clear = true;
|
|
uint64_t now = mstime();
|
|
char progress;
|
|
- char spinner[4] = "|/-\\";
|
|
+ char spinner[4] = { '|', '/', '-', '\\' };
|
|
int valid = 0;
|
|
double signalMax = -100.0;
|
|
double signalMin = +100.0;
|