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

Werner Koch wk at gnupg.org
Sat Jan 31 14:39:01 CET 2026


On Sat, 31 Jan 2026 01:26, Rudi Heitbaum said:
> Address compiler warning when variable is unused because it’s used
> only in assert.

Anyone who defines NDEBUG does not known what s/he does.  An assert is
there for a reason.  It is plain stupid to use an assert but disable it
for production.


Salam-Shalom,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260131/5c1cb0a6/attachment.sig>


More information about the Gnupg-devel mailing list