[PATCH 1/3] tests: Cast to void to suppress warnings about unused variables

Jacob Bachmeyer jcb62281 at gmail.com
Sat Jan 31 05:34:28 CET 2026


On 1/30/26 22:19, Rudi Heitbaum wrote:
> 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.

Another option would be to override that and enforce that assertions are 
always checked in the test suite, even in release builds.


-- Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260130/fbebd14c/attachment.html>


More information about the Gnupg-devel mailing list