mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 21:44:13 -04:00
#191 clang-tidy reduce NOLINTs using asserts, remove DeadStores
This commit is contained in:
parent
dd2bdb4335
commit
52d08fd9b9
12 changed files with 35 additions and 34 deletions
|
@ -52,6 +52,7 @@
|
|||
#ifdef _MSC_VER
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include "common.h"
|
||||
#include "reedsol.h"
|
||||
static int logmod; // 2**symsize - 1
|
||||
|
@ -72,6 +73,9 @@ static int *logt = NULL, *alog = NULL, *rspoly = NULL;
|
|||
INTERNAL void rs_init_gf(const int poly) {
|
||||
int m, b, p, v;
|
||||
|
||||
// Suppress clang-tidy clang-analyzer-core.UndefinedBinaryOperatorResult warning
|
||||
assert(poly >= 2);
|
||||
|
||||
// Find the top bit, and hence the symbol size
|
||||
for (b = 1, m = 0; b <= poly; b <<= 1)
|
||||
m++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue