aboutsummaryrefslogtreecommitdiffstats
path: root/etc/woodpecker/try-all-builds.sh
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-05-13 19:28:27 +0200
committerNRK <nrk@disroot.org>2023-05-13 19:28:27 +0200
commit5c6745436fcaca6e92b1a36a4add5aa15d17e164 (patch)
tree58bef64016a4c283bb6f88606bca4479c2f2b4c1 /etc/woodpecker/try-all-builds.sh
parentd7e149dbda9140595eab59bbda2f6c200fe8cc39 (diff)
downloadnsxiv-5c6745436fcaca6e92b1a36a4add5aa15d17e164.tar.zst
[ci]: silence false positive warning
clang-tidy currently flags the following: util.c:57:8: error: 'ptr' may be set to null if 'realloc' fails, which may result in a leak of the original buffer [bugprone-suspicious-realloc-usage,-warnings-as-errors] ptr = realloc(ptr, size); the analysis here is correct, but if realloc fails, we simply exit so there's no real "leak". moreover this check is not very useful for nsxiv's codebase because we do not use naked realloc(), instead we use the erealloc wrapper that exits on failure. so just disable the warning entirely instead of changing the source code to silence the false positive.
Diffstat (limited to 'etc/woodpecker/try-all-builds.sh')
0 files changed, 0 insertions, 0 deletions