diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-30 13:02:07 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-12-04 09:50:53 +0100 |
commit | ba84a3b17af81e25bb11854052c616f399ba4275 (patch) | |
tree | 44fb5652f75eb813d7fc0c6b6cf55e114c7b93fd /tcp.h | |
parent | d902bb62885257ce19556e12af625abba67ccefd (diff) | |
download | passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar.gz passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar.bz2 passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar.lz passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar.xz passt-ba84a3b17af81e25bb11854052c616f399ba4275.tar.zst passt-ba84a3b17af81e25bb11854052c616f399ba4275.zip |
treewide: Add messages to static_assert() calls
A while ago, we updated passt to require C11, for several reasons, but one
was to be able to use static_assert() for build time checks. The C11
version of static_assert() requires a message to print in case of failure
as well as the test condition it self. It was extended in C23 to make the
message optional, but we don't want to require C23 at this time.
Unfortunately we missed that in some of the static_assert()s we already
added which use the C23 form without a message. clang-tidy has a warning
for this, but for some reason it's not seeming to trigger in the current
cases (but did for some I'm working on adding).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.h')
0 files changed, 0 insertions, 0 deletions