Skip to content

Commit 480dee6

Browse files
committed
Fix unterminated-string-initialization warning.
1 parent 1d3a01f commit 480dee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ais_charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "ais_charset.h"
22

3-
char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";
3+
__attribute__((nonstring)) char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";

interactive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void interactiveShowData(void) {
140140
static bool need_clear = true;
141141
uint64_t now = mstime();
142142
char progress;
143-
char spinner[4] = "|/-\\";
143+
__attribute__((nonstring)) char spinner[4] = "|/-\\";
144144
int valid = 0;
145145
double signalMax = -100.0;
146146
double signalMin = +100.0;

0 commit comments

Comments
 (0)