From ab64314222aca47dd7e52eca2d54d2fad0a58f6c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Fri, 10 Jan 2025 15:55:24 +0100 Subject: Resolve a compiler warning --- lpg/libqr/constants.c | 80 +++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'lpg') diff --git a/lpg/libqr/constants.c b/lpg/libqr/constants.c index 797d853..18c37e6 100644 --- a/lpg/libqr/constants.c +++ b/lpg/libqr/constants.c @@ -88,46 +88,46 @@ const int QR_DATA_WORD_COUNT[40][4] = { }; const int QR_RS_BLOCK_COUNT[40][4][2] = { - { 1, 0, 1, 0, 1, 0, 1, 0 }, /* 1 */ - { 1, 0, 1, 0, 1, 0, 1, 0 }, /* 2 */ - { 1, 0, 1, 0, 2, 0, 2, 0 }, /* 3 */ - { 1, 0, 2, 0, 2, 0, 4, 0 }, /* 4 */ - { 1, 0, 2, 0, 2, 2, 2, 2 }, /* 5 */ - { 2, 0, 4, 0, 4, 0, 4, 0 }, /* 6 */ - { 2, 0, 4, 0, 2, 4, 4, 1 }, /* 7 */ - { 2, 0, 2, 2, 4, 2, 4, 2 }, /* 8 */ - { 2, 0, 3, 2, 4, 4, 4, 4 }, /* 9 */ - { 2, 2, 4, 1, 6, 2, 6, 2 }, /* 10 */ - { 4, 0, 1, 4, 4, 4, 3, 8 }, /* 11 */ - { 2, 2, 6, 2, 4, 6, 7, 4 }, /* 12 */ - { 4, 0, 8, 1, 8, 4, 12, 4 }, /* 13 */ - { 3, 1, 4, 5, 11, 5, 11, 5 }, /* 14 */ - { 5, 1, 5, 5, 5, 7, 11, 7 }, /* 15 */ - { 5, 1, 7, 3, 15, 2, 3, 13 }, /* 16 */ - { 1, 5, 10, 1, 1, 15, 2, 17 }, /* 17 */ - { 5, 1, 9, 4, 17, 1, 2, 19 }, /* 18 */ - { 3, 4, 3, 11, 17, 4, 9, 16 }, /* 19 */ - { 3, 5, 3, 13, 15, 5, 15, 10 }, /* 20 */ - { 4, 4, 17, 0, 17, 6, 19, 6 }, /* 21 */ - { 2, 7, 17, 0, 7, 16, 34, 0 }, /* 22 */ - { 4, 5, 4, 14, 11, 14, 16, 14 }, /* 23 */ - { 6, 4, 6, 14, 11, 16, 30, 2 }, /* 24 */ - { 8, 4, 8, 13, 7, 22, 22, 13 }, /* 25 */ - { 10, 2, 19, 4, 28, 6, 33, 4 }, /* 26 */ - { 8, 4, 22, 3, 8, 26, 12, 28 }, /* 27 */ - { 3, 10, 3, 23, 4, 31, 11, 31 }, /* 28 */ - { 7, 7, 21, 7, 1, 37, 19, 26 }, /* 29 */ - { 5, 10, 19, 10, 15, 25, 23, 25 }, /* 30 */ - { 13, 3, 2, 29, 42, 1, 23, 28 }, /* 31 */ - { 17, 0, 10, 23, 10, 35, 19, 35 }, /* 32 */ - { 17, 1, 14, 21, 29, 19, 11, 46 }, /* 33 */ - { 13, 6, 14, 23, 44, 7, 59, 1 }, /* 34 */ - { 12, 7, 12, 26, 39, 14, 22, 41 }, /* 35 */ - { 6, 14, 6, 34, 46, 10, 2, 64 }, /* 36 */ - { 17, 4, 29, 14, 49, 10, 24, 46 }, /* 37 */ - { 4, 18, 13, 32, 48, 14, 42, 32 }, /* 38 */ - { 20, 4, 40, 7, 43, 22, 10, 67 }, /* 39 */ - { 19, 6, 18, 31, 34, 34, 20, 61 } /* 40 */ + { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, /* 1 */ + { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, /* 2 */ + { { 1, 0 }, { 1, 0 }, { 2, 0 }, { 2, 0 } }, /* 3 */ + { { 1, 0 }, { 2, 0 }, { 2, 0 }, { 4, 0 } }, /* 4 */ + { { 1, 0 }, { 2, 0 }, { 2, 2 }, { 2, 2 } }, /* 5 */ + { { 2, 0 }, { 4, 0 }, { 4, 0 }, { 4, 0 } }, /* 6 */ + { { 2, 0 }, { 4, 0 }, { 2, 4 }, { 4, 1 } }, /* 7 */ + { { 2, 0 }, { 2, 2 }, { 4, 2 }, { 4, 2 } }, /* 8 */ + { { 2, 0 }, { 3, 2 }, { 4, 4 }, { 4, 4 } }, /* 9 */ + { { 2, 2 }, { 4, 1 }, { 6, 2 }, { 6, 2 } }, /* 10 */ + { { 4, 0 }, { 1, 4 }, { 4, 4 }, { 3, 8 } }, /* 11 */ + { { 2, 2 }, { 6, 2 }, { 4, 6 }, { 7, 4 } }, /* 12 */ + { { 4, 0 }, { 8, 1 }, { 8, 4 }, { 12, 4 } }, /* 13 */ + { { 3, 1 }, { 4, 5 }, { 11, 5 }, { 11, 5 } }, /* 14 */ + { { 5, 1 }, { 5, 5 }, { 5, 7 }, { 11, 7 } }, /* 15 */ + { { 5, 1 }, { 7, 3 }, { 15, 2 }, { 3, 13 } }, /* 16 */ + { { 1, 5 }, { 10, 1 }, { 1, 15 }, { 2, 17 } }, /* 17 */ + { { 5, 1 }, { 9, 4 }, { 17, 1 }, { 2, 19 } }, /* 18 */ + { { 3, 4 }, { 3, 11 }, { 17, 4 }, { 9, 16 } }, /* 19 */ + { { 3, 5 }, { 3, 13 }, { 15, 5 }, { 15, 10 } }, /* 20 */ + { { 4, 4 }, { 17, 0 }, { 17, 6 }, { 19, 6 } }, /* 21 */ + { { 2, 7 }, { 17, 0 }, { 7, 16 }, { 34, 0 } }, /* 22 */ + { { 4, 5 }, { 4, 14 }, { 11, 14 }, { 16, 14 } }, /* 23 */ + { { 6, 4 }, { 6, 14 }, { 11, 16 }, { 30, 2 } }, /* 24 */ + { { 8, 4 }, { 8, 13 }, { 7, 22 }, { 22, 13 } }, /* 25 */ + { { 10, 2 }, { 19, 4 }, { 28, 6 }, { 33, 4 } }, /* 26 */ + { { 8, 4 }, { 22, 3 }, { 8, 26 }, { 12, 28 } }, /* 27 */ + { { 3, 10 }, { 3, 23 }, { 4, 31 }, { 11, 31 } }, /* 28 */ + { { 7, 7 }, { 21, 7 }, { 1, 37 }, { 19, 26 } }, /* 29 */ + { { 5, 10 }, { 19, 10 }, { 15, 25 }, { 23, 25 } }, /* 30 */ + { { 13, 3 }, { 2, 29 }, { 42, 1 }, { 23, 28 } }, /* 31 */ + { { 17, 0 }, { 10, 23 }, { 10, 35 }, { 19, 35 } }, /* 32 */ + { { 17, 1 }, { 14, 21 }, { 29, 19 }, { 11, 46 } }, /* 33 */ + { { 13, 6 }, { 14, 23 }, { 44, 7 }, { 59, 1 } }, /* 34 */ + { { 12, 7 }, { 12, 26 }, { 39, 14 }, { 22, 41 } }, /* 35 */ + { { 6, 14 }, { 6, 34 }, { 46, 10 }, { 2, 64 } }, /* 36 */ + { { 17, 4 }, { 29, 14 }, { 49, 10 }, { 24, 46 } }, /* 37 */ + { { 4, 18 }, { 13, 32 }, { 48, 14 }, { 42, 32 } }, /* 38 */ + { { 20, 4 }, { 40, 7 }, { 43, 22 }, { 10, 67 } }, /* 39 */ + { { 19, 6 }, { 18, 31 }, { 34, 34 }, { 20, 61 } } /* 40 */ }; const enum qr_data_type QR_TYPE_CODES[16] = { -- cgit v1.2.3-70-g09d2