cstylecasts suppress,fixes

This commit is contained in:
gtsoul-tech
2024-05-20 17:09:30 +03:00
parent e111684bc2
commit dfa72ffd50
11 changed files with 63 additions and 20 deletions

View File

@@ -43,8 +43,8 @@ struct NFA;
static really_inline
const struct NFA *getSmwrNfa(const struct SmallWriteEngine *smwr) {
assert(smwr);
const struct NFA *n
= (const struct NFA *)((const char *)smwr + sizeof(*smwr));
// cppcheck-suppress cstyleCast
const struct NFA *n= (const struct NFA *)((const char *)smwr + sizeof(*smwr));
assert(ISALIGNED_CL(n));
return n;
}