[PATCH 1/3] tests: Cast to void to suppress warnings about unused variables
Rudi Heitbaum
rudi at heitbaum.com
Sat Jan 31 05:19:20 CET 2026
When compiling a Release build (without assert) these come up as unused.
Alternative approach would be to Error the compile when test is part of the build but assert is not part of the build due to the build being Release.
________________________________
From: Jacob Bachmeyer <jcb62281 at gmail.com>
Sent: Saturday, January 31, 2026 15:06
To: Rudi Heitbaum <rudi at heitbaum.com>; gnupg-devel at gnupg.org <gnupg-devel at gnupg.org>
Subject: Re: [PATCH 1/3] tests: Cast to void to suppress warnings about unused variables
On 1/30/26 19:26, Rudi Heitbaum via Gnupg-devel wrote:
> Address compiler warning when variable is unused because it’s used only in assert.
Does this mean that the assertions are not actually being checked? If
so, that could be a bit of a problem, given that these are in testsuite
code.
In other words, does this patch "paper over" actual bugs that GCC has
uncovered?
-- Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260131/f949bb81/attachment-0001.html>
More information about the Gnupg-devel
mailing list