bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: byteswap side-effect defect report from Coverity


From: Paul Eggert
Subject: Re: byteswap side-effect defect report from Coverity
Date: Mon, 20 May 2024 14:40:53 -0700
User-agent: Mozilla Thunderbird

On 5/20/24 14:29, Jeffrey Walton wrote:
I think this is a valid finding. It will operate one way in release builds
(-DNDEBUG), and another way in debug builds (no NDEBUG).

When NDEBUG is in effect, the code `bswap_16 (value_1++) == 0` will be
removed.

How so? The test program uses 'ASSERT' not 'assert', so 'NDEBUG' should be irrelevant.

Can you reproduce the problem with:

./gnulib-tool --test byteswap

?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]