diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-15 14:13:11 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-16 17:04:11 +0200 |
| commit | e51494552b784861b58f9546a25dfd74b8c09de9 (patch) | |
| tree | 6961f2ad61765c3a22c3cf35376aecffda8ebd77 /contrib/qemu/git: | |
| parent | fd4b6378006e7398a3d965e4818b62ff50ff04ce (diff) | |
| download | passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar.gz passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar.bz2 passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar.lz passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar.xz passt-e51494552b784861b58f9546a25dfd74b8c09de9.tar.zst passt-e51494552b784861b58f9546a25dfd74b8c09de9.zip | |
Fix build with -DNDEBUG
Since bc872d91765d, our assert() statements are omitted if we compile with
-DNDEBUG, like the standard library assert(3). Unfortunately a trivial but
embarrassing mistake in that patch means that instead of never aborting in
this case, assert_with_msg() *always* aborts, breaking pretty much
everything.
There's also a missing #include that breaks the build with -DNDEBUG on at
least some library versions.
Reported-by: Jan Palus <jpalus@fastmail.com>
Fixes: bc872d91765d ("treewide: Spell ASSERT() as assert()")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[sbrivio: Explicitly avoid evaluation of expr in assert_with_msg on
NDEBUG as suggested by Jan]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu/git:')
0 files changed, 0 insertions, 0 deletions
