[PATCH 1/3] tests: Cast to void to suppress warnings about unused variables
Rudi Heitbaum
rudi at heitbaum.com
Sat Jan 31 22:59:00 CET 2026
Werner, Very well know what an assert is if you are intending this comment to me.
In production we would not be using tests.
So perhaps as option could be added to disable-test builds to configure? Would this be acceptable? It would allow for clean, warning free compiles, which would have to be a good thing for security software?
Regards
Rudi
________________________________
From: Werner Koch <wk at gnupg.org>
Sent: Sunday, February 1, 2026 00:35
To: Rudi Heitbaum via Gnupg-devel <gnupg-devel at gnupg.org>
Cc: Rudi Heitbaum <rudi at heitbaum.com>
Subject: Re: [PATCH 1/3] tests: Cast to void to suppress warnings about unused variables
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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260131/c42d0abc/attachment-0001.html>
More information about the Gnupg-devel
mailing list