diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-11-17 16:58:37 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-11-25 01:34:08 +0100 |
commit | e6948822ba28387347c6937e370584f9f164d0b3 (patch) | |
tree | d1f9b6d54a868666871b5909964da35ed3da49b2 /Makefile | |
parent | 708b3660163a23aa314db2189ffd7b9b624cd2ae (diff) | |
download | passt-e6948822ba28387347c6937e370584f9f164d0b3.tar passt-e6948822ba28387347c6937e370584f9f164d0b3.tar.gz passt-e6948822ba28387347c6937e370584f9f164d0b3.tar.bz2 passt-e6948822ba28387347c6937e370584f9f164d0b3.tar.lz passt-e6948822ba28387347c6937e370584f9f164d0b3.tar.xz passt-e6948822ba28387347c6937e370584f9f164d0b3.tar.zst passt-e6948822ba28387347c6937e370584f9f164d0b3.zip |
clang-tidy: Suppress warning about assignments in if statements
clang-tools 15.0.0 appears to have added a new warning that will always
complain about assignments in if statements, which we use in a number of
places in passt/pasta. Encountered on Fedora 37 with
clang-tools-extra-15.0.0-3.fc37.x86_64.
Suppress the new warning so that we can compile and test.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -259,11 +259,16 @@ docs: README.md # - readability-identifier-length # Complains about any identifier <3 characters, reasonable for # globals, pointlessly verbose for locals and parameters. +# +# - bugprone-assignment-in-if-condition +# Dubious value over the compiler's built-in warning. Would +# increase verbosity. clang-tidy: $(SRCS) $(HEADERS) clang-tidy -checks=*,-modernize-*,\ -clang-analyzer-valist.Uninitialized,\ -cppcoreguidelines-init-variables,\ + -bugprone-assignment-in-if-condition,\ -bugprone-macro-parentheses,\ -google-readability-braces-around-statements,\ -hicpp-braces-around-statements,\ |