mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-13 09:33:52 +00:00
Suppress gcc-15 warning -Wunterminated-string-initialization
ci: macOS: try GS1 Syntax Engine agin
This commit is contained in:
@@ -513,7 +513,7 @@ INTERNAL int zint_datamatrix(struct zint_symbol *symbol, struct zint_seg segs[],
|
||||
/* Royal Mail 2D Mailmark (CMDM) (Data Matrix) */
|
||||
/* https://www.royalmailtechnical.com/rmt_docs/User_Guides_2021/Mailmark_Barcode_definition_document_20210215.pdf */
|
||||
INTERNAL int zint_mailmark_2d(struct zint_symbol *symbol, unsigned char source[], int length) {
|
||||
static const char spaces[9] = " ";
|
||||
static const char spaces[9] = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' };
|
||||
unsigned char local_source[90 + 1];
|
||||
char postcode[10];
|
||||
int i;
|
||||
|
||||
@@ -2471,7 +2471,7 @@ static void test_encode(const testCtx *const p_ctx) {
|
||||
"0011010000001001010"
|
||||
"1011000010000000000"
|
||||
},
|
||||
/* 48*/ { BARCODE_AZTEC, GS1_MODE, -1, -1, -1, 6, { 2, 4, "12345678901234567890123456789012" }, "[01]12345678901231[10]01", -1, ZINT_WARN_NONCOMPLIANT, 23, 23, 1, 1, "GS1 with Structured Append, full symbol",
|
||||
/* 48*/ { BARCODE_AZTEC, GS1_MODE, -1, -1, -1, 6, { 2, 4, { '1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','1','2' } }, "[01]12345678901231[10]01", -1, ZINT_WARN_NONCOMPLIANT, 23, 23, 1, 1, "GS1 with Structured Append, full symbol",
|
||||
"11100110011000010001000"
|
||||
"10100110000110101111010"
|
||||
"11000101100000111000011"
|
||||
|
||||
@@ -614,7 +614,7 @@ static int isbnx(struct zint_symbol *symbol, unsigned char source[], const int l
|
||||
|
||||
/* Check if GTIN-13 `source` is UPC-E compatible and convert as UPC-E into `out` if so */
|
||||
static int ean_is_upce(const unsigned char source[], unsigned char *out) {
|
||||
static const char zeroes[5] = "00000";
|
||||
static const char zeroes[5] = { '0', '0', '0', '0', '0' };
|
||||
|
||||
if (source[0] != '0' || source[1] > '1') {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user