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

Werner Koch via Gnupg-devel <[email protected]> Sat, 31 Jan 2026 14:39:01 +0100
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
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

_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
openpgp-digital-signature.asc (application/pgp-signature, 284 B)
-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaX4F9hsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQeo12AQD0
vun+qv/4mP/cn3PdAiRL9sGuR/amIP8d6ugVzpc6AQEA0xqtefFz3y01qKiDsmT2
EVlm9CVK1kO4sz0+sdJxEwU=
=ZWAS
-----END PGP SIGNATURE-----