mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
clang-tidy-14: suppress some further warnings using asserts (removed remaining NOLINT)
This commit is contained in:
@ -765,6 +765,8 @@ static void add_ecc(unsigned char fullstream[], const unsigned char datastream[]
|
||||
ecc_cw = rmqr_total_codewords[version - RMQR_VERSION] - data_cw;
|
||||
}
|
||||
|
||||
/* Suppress some clang-tidy clang-analyzer-core.UndefinedBinaryOperatorResult/uninitialized.Assign warnings */
|
||||
assert(blocks > 0);
|
||||
short_data_block_length = data_cw / blocks;
|
||||
qty_long_blocks = data_cw % blocks;
|
||||
qty_short_blocks = blocks - qty_long_blocks;
|
||||
@ -840,7 +842,6 @@ static void add_ecc(unsigned char fullstream[], const unsigned char datastream[]
|
||||
}
|
||||
|
||||
for (j = 0; j < data_cw; j++) {
|
||||
// NOLINTNEXTLINE suppress clang-tidy warning: interleaved_data[data_cw] fully set
|
||||
fullstream[j] = interleaved_data[j];
|
||||
}
|
||||
for (j = 0; j < ecc_cw; j++) {
|
||||
|
Reference in New Issue
Block a user