From d0e5878dce74b010e6799effd936a7dd7e6b7be8 Mon Sep 17 00:00:00 2001 From: gitlost Date: Thu, 18 Aug 2022 22:33:27 +0100 Subject: [PATCH] Suppress old gcc -Wpedantic const warnings ([1a2592]) --- backend/pdf417.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/pdf417.c b/backend/pdf417.c index 85adee3b..748f8590 100644 --- a/backend/pdf417.c +++ b/backend/pdf417.c @@ -116,7 +116,7 @@ static int pdf_quelmode(const unsigned char codeascii) { } /* Check consecutive segments for text/num and return the length */ -static int pdf_text_num_length(const int liste[3][PDF_MAX_LEN], const int indexliste, const int start) { +static int pdf_text_num_length(int liste[3][PDF_MAX_LEN], const int indexliste, const int start) { int i, len = 0; for (i = start; i < indexliste; i++) { if (liste[1][i] == BYT) @@ -223,8 +223,7 @@ static int pdf_text_submode_length(const unsigned char chaine[], const int start } /* Whether to stay in numeric mode or not */ -static int pdf_num_stay(const unsigned char *chaine, const int indexliste, const int liste[3][PDF_MAX_LEN], - const int i) { +static int pdf_num_stay(const unsigned char *chaine, const int indexliste, int liste[3][PDF_MAX_LEN], const int i) { int curtable, last_len, last_ml, next_len, num_cws, tex_cws; if (liste[0][i] >= 13 || (indexliste == 1 && liste[0][i] > 5)) {