mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 18:37:07 +00:00
Suppress gcc-15 warning -Wunterminated-string-initialization
ci: macOS: try GS1 Syntax Engine agin
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -161,10 +161,13 @@ jobs:
|
||||
shell: bash
|
||||
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} && cmake -E make_directory build
|
||||
|
||||
- name: Install GS1 Syntax Engine
|
||||
run: git clone https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && (sudo make install || true)
|
||||
|
||||
- name: Configure CMake
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF
|
||||
run: cmake $GITHUB_WORKSPACE -DCMAKE_C_FLAGS='-I /usr/local/include' -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF
|
||||
|
||||
- name: Build
|
||||
working-directory: build
|
||||
|
||||
@@ -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